Effects.SoundDirectionEnable method |
|
Remarks
Enables/disables the possibility to play the loaded song in reverse through future calls to the SoundDirectionSet method.
This method will have effect only for the following audio formats: MP1, MP2, MP3, MP4, AIFF, AAC, M4A, AC3, WavPack, ALAC, WAV, OGG Vorbis, WMA, ASF, WMV, FLAC, Speex, Musepack and Monkey's Audio (APE).
Other audio formats, including video clips managed by DirectShow, Internet streams loaded through the LoadInternetStream method and audio queues created through the StreamQueueCreate method, don't come with support for reverse playback.
See the How to apply special effects to a playing sound section for further details.
Syntax
[Visual Basic] Public Function SoundDirectionEnable ( nPlayerIndex as Int16, bEnable as Boolean ) as enumErrorCodes |
[C#] public enumErrorCodes SoundDirectionEnable ( Int16 nPlayerIndex, bool bEnable ); |
[C++] public: enumErrorCodes SoundDirectionEnable ( Int16 nPlayerIndex, bool bEnable ); |
Parameter |
Description |
||||||
|
|
||||||
nPlayerIndex |
Number representing the zero-based index of the involved player |
||||||
bEnable |
Boolean value indicating if the control needs to resample the stream for reverse playback support. Supported values are the following:
|
Return value
Value |
Meaning |
|
|
Negative value |
An error occurred (see the LastError property for further error details) |
enumErrorCodes.NOERROR (0) |
The method call was successful. |