setAudioDualMonoMode
Sets the channel mode of the current audio file.
int setAudioDualMonoMode(int mode);
In stereo audio files, the left and right channels can store different audio data. You can set the channel mode to original, left, right, or mixed channel mode as needed. For example, in a KTV scenario, the left channel stores accompaniment and the right channel stores vocals. If you only want to hear the accompaniment, set the channel mode to left; if you want to hear both, set it to mixed channel mode.
Note:
- Call this method after calling the
openmethod. - This method applies only to stereo audio files.
Parameters
- mode
- Channel mode:
AUDIO_DUAL_MONO_STEREO(0): Original mode.AUDIO_DUAL_MONO_L(1): Left channel mode. Replaces the right channel with the left channel audio; you can only hear the left channel.AUDIO_DUAL_MONO_R(2): Right channel mode. Replaces the left channel with the right channel audio; you can only hear the right channel.AUDIO_DUAL_MONO_MIX(3): Mixed channel mode. Mixes the left and right channel audio; you can hear both channels.
Return Values
- 0: Success.
- < 0: Failure.