selectAudioTrack [2/2]
Selects the audio track used during playback.
virtual int selectAudioTrack(int index) = 0;
After obtaining the audio track index of the audio file, you can call this method to specify the track to play. For example, if different tracks in a multi-track file store songs in different languages, you can call this method to set the playback language.
Note: You need to call this method after calling getStreamInfo to get the audio stream index.
Parameters
- index
- The index of the audio track.
Return Values
- 0: Success.
- < 0: Failure.