I create application for playing audio file with using OpenSL ES library for android. But when i create player i check channels count only for 1 or 2.
For creation SLDataFormat_PCM i should set mask, accordingly: for 1 channel it will be "SL_SPEAKER_FRONT_CENTER" and for 2 channels mask will be "SL_SPEAKER_FRONT_LEFT | SL_SPEAKER_FRONT_RIGHT".
How can i do if the audio file will be with more than 2 channels(5, 7), it is possible in OpenSL ES?
Aucun commentaire:
Enregistrer un commentaire