getAudioTrackCount abstract method

Future<int> getAudioTrackCount()

Gets the index of audio tracks of the current music file.

You need to call this method after calling startAudioMixing and receiving the onAudioMixingStateChanged (audioMixingStatePlaying) callback.

Returns The SDK returns the index of the audio tracks if the method call succeeds. < 0: Failure.

Implementation

Future<int> getAudioTrackCount();