Copyright © 2005-2018 MultiMedia Soft

Effects.SoundDirectionEnable method

Previous pageReturn to chapter overviewNext page

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:

Mnemonic constant

Meaning

false (default)

Disable reversed sound creation

true

Enable reversed sound creation

 

 

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.