Adds a packet to a "push" raw Opus stream.
DWORD BASS_OPUS_StreamPutData( HSTREAM handle, void *buffer, DWORD length );
handle | The stream handle. |
buffer | Pointer to the packet data. |
length | The amount of data in bytes, optionally using the BASS_STREAMPROC_END flag to signify the end of the stream. BASS_STREAMPROC_OPUS_LOSS can be used to signify a missing packet. 0 can be used to just check how many packets are queued. |
BASS_ERROR_HANDLE | handle is not valid. |
BASS_ERROR_NOTAVAIL | The stream is not using the push system. |
BASS_ERROR_ILLPARAM | length is not valid. |
BASS_ERROR_ENDED | The stream has ended. |
BASS_ERROR_MEM | There is insufficient memory. |
When the BASS_STREAMPROC_OPUS_LOSS value is used to indicate a missing packet, packet loss concealment will be activated to fill the gap.