bool SetCurrentAudioStream (int audioStream);
| Name | Description | |
|---|---|---|
| in | audioStream | The index of the audio stream that will be used for decoding and playback. |
true if success.
false if audioStream index is out of range or if corresponding audio decoder instance could not be created.
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.