Encodes sample data, and writes it to the file or network.
This overload uses a managed short[] to handover sample data to the encoder (perfect for 16-bit samples).
Namespace: Un4seen.Bass.AddOn.Wma
Assembly: Bass.Net (in Bass.Net.dll) Version: 2.4.17.5
Syntax
[DllImportAttribute("basswma")] public static bool BASS_WMA_EncodeWrite( int handle, short[] buffer, int length )
Parameters
- handle
- Type: SystemInt32
The encoder handle. - buffer
- Type: SystemInt16
The buffer containing the sample data. - length
- Type: SystemInt32
The number of BYTES in the buffer.
Return Value
Type: BooleanIf succesful, is returned, else is returned. Use BASS_ErrorGetCode to get the error code.
Remarks
There is generally no need to call this function if the BASS_WMA_ENCODE_SOURCE flag has been set on the encoder, as the encoder will automatically be fed the data that its source BASS channel produces.
ERROR CODE | Description |
---|---|
BASS_ERROR_HANDLE | handle is not valid. |
BASS_ERROR_MEM | There is insufficient memory. |
BASS_ERROR_UNKNOWN | Some other mystery problem! |
Examples
See Also