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);
speaker_mode = FMOD_SPEAKERMODE_5POINT1;
result = FMOD_System_SetSpeakerMode (gSystem, speaker_mode);
result = FMOD_System_SetOutput (gSystem, FMOD_OUTPUTTYPE_AUDIOTRACK);
result = FMOD_System_Init(gSystem, 32, FMOD_INIT_NORMAL, 0); // –> This Crashes.
Please let me know how I can move forward.
- ftdlaks asked 4 years ago
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.
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.
- ftdlaks answered 3 years ago
Please login first to submit.