Assembly: Bass.Net (in Bass.Net.dll) Version: 18.104.22.168
[DllImportAttribute("basswasapi")] public static int BASS_WASAPI_PutData( IntPtr buffer, int length )
<DllImportAttribute("basswasapi">] Public Shared Function BASS_WASAPI_PutData ( buffer As IntPtr, length As Integer ) As Integer
- Type: SystemIntPtr
The pointer to the sample data to provide.
- Type: SystemInt32
The amount of data in bytes! (buffer.Length/4). BASS_WASAPI_GetData(IntPtr, Int32) with the BASS_DATA_AVAILABLE flag can be used to check how much data is queued.
Return ValueType: Int32
If successful, the the amount of data copied from the provided buffer will be returned (which may be less than requested if it doesn't all fit in the device buffer, see the BASS_WASAPI_INFO "buflen" property), else -1 is returned. Use BASS_ErrorGetCode to get the error code.
As much data as possible will be placed in the device's buffer; this function will have to be called again for any remainder.
Data should be provided at a rate sufficent to sustain playback. If the buffer gets exhausted, ouput will stall until more data is provided. BASS_WASAPI_GetData(IntPtr, Int32) (BASS_DATA_AVAILABLE) can be used to check how much data is buffered.
|BASS_ERROR_INIT||BASS_WASAPI_Init(Int32, Int32, Int32, BASSWASAPIInit, Single, Single, WASAPIPROC, IntPtr) has not been successfully called.|
|BASS_ERROR_NOTAVAIL||The device is being fed by a WASAPIPROC callback function, or it is an input device.|
|BASS_ERROR_ILLPARAM||length is not valid, it must equate to a whole number of samples.|
|BASS_ERROR_UNKNOWN||Some other mystery problem!|