BASS.NET API for the Un4seen BASS Audio LibraryBassWasapiHandlerWasapiInputCallback 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: 2.4.12.0
Syntax

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

Parameters

buffer
Type: SystemIntPtr
The pointer to the buffer containing the sample data. Will always be floating point!
length
Type: SystemInt32
The number of bytes to process.
user
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).
Remarks

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

Reference