mw::mo::helper::Player::SetCurrentAudioStream Function

Syntax


bool SetCurrentAudioStream (int audioStream);

Arguments

Name Description
in audioStream The index of the audio stream that will be used for decoding and playback.

Returns

true if success.
false if audioStream index is out of range or if corresponding audio decoder instance could not be created.

Description

Sets the audio stream index that will be used for decoding and playback.
Give -1 as value of audioStream parameter (this is the default) if you want none of them to be used.
Only one audio decoder instance is created at once.
If the selected audio stream index is changed the following steps are done:
- the current audio decoder instance is released, if any.
- a new audio decoder instance is created, corresponding to the newly selected audio stream.

Revision History

2011/10/03
Initial version.