getAudioTrackCount abstract method

Future<int> getAudioTrackCount()

Gets the audio track index of the current music file.

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

Returns When the method call succeeds, returns the audio track index of the current music file. < 0: The method call fails. See Error Codes for details and resolution suggestions.

Implementation

Future<int> getAudioTrackCount();