BASS.NET API for the Un4seen BASS Audio Library

BassWasapiHandlerWasapiInputCallback Method

BASS.NET API for the Un4seen BASS Audio Library
Provides a ready made WASAPIPROC callback procedure which might be used for WASAPI input.

Namespace:  Un4seen.BassWasapi
Assembly:  Bass.Net (in Bass.Net.dll) Version:

public virtual int WasapiInputCallback(
	IntPtr buffer,
	int length,
	IntPtr user


Type: SystemIntPtr
The pointer to the buffer containing the sample data. Will always be floating point!
Type: SystemInt32
The number of bytes to process.
Type: SystemIntPtr
The user instance data given when BASS_WASAPI_Init(Int32, Int32, Int32, BASSWASAPIInit, Single, Single, WASAPIPROC, IntPtr) was called.

Return Value

Type: Int32
Will always return 0 here (as it is ignored with input channels).

To receive the recorded sample data you might use the InputChannel and set up a DSP on it.

If you intend to overload this callback in a derive implementation make sure to call the base method to not loose any functionatily.

See Also