0
0

Hello FMOD folks,

I am trying to obtain multichannel FMOD output on android (specifically 5.1 and 7.1).

I have hacked the android platform to use AudioTrack API to play out multichannel PCM and verified that it works, however when I run FMOD to use AudioTrack and set speaker mode to 5POINT1 (or 7POINT1) I get a crash during FMOD System Init .

The crash is located inside the FMOD internal implementation (FMOD_DSP_Connection_MixStereoToStereo_VFP) and I am unable to debug further or proceed further.

Here is part of my code:
[code:36gxafuc]result = FMOD_System_Create(&gSystem);
CHECK_RESULT(result);

speaker_mode = FMOD_SPEAKERMODE_5POINT1;

result = FMOD_System_SetSpeakerMode (gSystem, speaker_mode);
CHECK_RESULT(result);

result = FMOD_System_SetOutput (gSystem, FMOD_OUTPUTTYPE_AUDIOTRACK);
CHECK_RESULT(result);

result = FMOD_System_Init(gSystem, 32, FMOD_INIT_NORMAL, 0); // –> This Crashes.

[/code:36gxafuc]

Please let me know how I can move forward.

  • You must to post comments
0
0

FMOD currently only supports stereo output on Android, I am hoping to expand this to support multichannel formats in the near future though.
Either way, it shouldn’t crash, I will investigate why that is happening too.

  • You must to post comments
0
0

Our next release of 4.44 branch will include support for 5.1 playback using the AudioTrack output mode, 7.1 isn’t supported by any current Android SDK. You will need API16 to get 5.1 through the Java layer, testing here with a Nexus S the devices does a fold down to stereo on playback. You will need a device with HDMI support to get 5.1 channels.

The crash should be fixed now, trying 7.1 will generate an appropriate error message.

  • You must to post comments
0
0

Hello Mathew,

Thanks for fixing this. It is working now and we are able to work with 5.1. However, our underlying HW and framework can support 7.1 playback using AudioTrack.

Would it be possible to add 7.1 support into android FMOD anytime soon? Is this feature in your development roadmap?

Please let me know.

  • You must to post comments
0
0

We don’t currently have 7.1 planned for Android. Regardless, until such time as the Android SDK support 7.1 via AudioTrack we cannot do this anyway.

  • You must to post comments
Showing 4 results
Your Answer

Please first to submit.