Creates a reversed stream from a decoding channel.
HSTREAM BASS_FX_ReverseCreate( |
Parameters
chan | Stream/music/wma/cd/any other supported add-on format using a decoding channel | ||||||||||||||||
dec_block | Length of decoding blocks in seconds. Larger blocks means less seeking overhead but larger spikes | ||||||||||||||||
flags | A combination of the following flags:
|
Return value
If successful, the handle of the reversed stream is returned, else 0 is returned. Use BASS_ErrorGetCode to get the error code.
Remarks
MODs are supported if BASS_MUSIC_PRESCAN flag was applied
to a source handle. Enable reverse supported flags in BASS_FX_ReverseCreate
and the others to source handle. For better MP3/2/1 reverse playback create the
stream using the BASS_STREAM_PRESCAN flag.
By
default stream's position
will start from the
end with the BASS_FX_RVS_REVERSE direction.
Example
Create a Reverse stream.
HSTREAM
chan=BASS_StreamCreateFile(...,BASS_STREAM_DECODE); // create decoded stream |
Error codes
BASS_ERROR_HANDLE | chan is not valid |
BASS_ERROR_DECODE | The chan is not a decoding channel. Make sure the chan was created using BASS_STREAM_DECODE / BASS_MUSIC_DECODE flag |
BASS_ERROR_ILLPARAM | An illegal parameter was specified |
See also
BASS_FX_ReverseGetSource, Reverse Attribute