Debug FMOD on Android

I’m facing a strange issue. When my app stops on a breakpoint for a while, then continue. sounds stop working (but app keep working as expected), channels are not really playing (exceed the max num of channel) although we call to system->update() every frame.
The same source code works well on iOS, so I guess I missed android specific configuration.

Can you try linking with the logging version of FMOD and provide the LogCat output?
Also, which version are you using?

I’m using fmod version 2.1.04, I face it constantly after few stops on the same breakpoint before createSound() method

This the logcat filter by “fmod”:

2020-10-20 12:59:18.757 27021-28358/com.myApp I/fmod: FMOD_OS_Init                             : Detected CPU family: 4, features: 0x7F, cores: 8.
2020-10-20 12:59:18.760 27021-28358/com.myApp I/fmod: SystemI::init                            : Initialize version=20104 (111454), maxchannels=24, flags=0x00000000
2020-10-20 12:59:18.764 27021-28358/com.myApp I/fmod: SystemI::setOutputInternal               : Setting output to 'FMOD AAudio Output'
2020-10-20 12:59:18.772 27021-28358/com.myApp I/AAudioStream: open() device = 0, sessionId   = 0, perfMode = 12, callback: OFF with frames = 0
2020-10-20 12:59:18.782 27021-28358/com.myApp W/AudioStreamTrack: open() perfMode changed from 12 to 10
2020-10-20 12:59:18.794 27021-28358/com.myApp I/AAudioStream: open() device = 0, sessionId   = 0, perfMode = 12, callback: ON with frames = 0
2020-10-20 12:59:18.805 27021-28358/com.myApp I/fmod: OutputAAudio::init                       : Sample rate: HW = 48000, SW = 24000  Block size: HW = 192, SW = 512.
2020-10-20 12:59:18.805 27021-28358/com.myApp W/fmod: SystemI::init                            : Output requires a sample rate of 48000Hz, resampling will occur.
2020-10-20 12:59:18.805 27021-28358/com.myApp I/fmod: Thread::initThread                       : Init FMOD stream thread. Affinity: 0x8000000000000003, Priority: 0xFFFF7FFB, Stack Size: 98304, Semaphore: No, Sleep Time: 10, Looping: myApp
2020-10-20 12:59:18.809 27021-28358/com.myApp I/fmod: Thread::initThread                       : Init FMOD mixer thread. Affinity: 0x8000000000000001, Priority: 0xFFFF7FFA, Stack Size: 81920, Semaphore: Yes, Sleep Time: 0, Looping: myApp
2020-10-20 12:59:22.302 27021-28483/com.myApp I/fmod: SystemI::createSoundInternal             : Create name='/data/user/0/com.myApp/files/SFX/chipCountupLoop.ogg', mode=0x00000102
2020-10-20 12:59:22.310 27021-28483/com.myApp I/fmod: SystemI::createSoundInternal             : Sample 0/0: name='(null)', format=2, channels=2, frequency=44100, lengthbytes=18565, lengthpcm=108351, pcmblocksize=0, loopstart=0, loopend=0, myAppnnelmask=0x00000000, channelorder=0, peakvolume=0.000000.
2020-10-20 12:59:26.158 27021-28483/com.myApp I/fmod: SystemI::createSoundInternal             : Create name='/data/user/0/com.myApp/files/Downloads/SMART_ASSET/Paginator_asset/1167209335/FeaturedLobbymyApp82
2020-10-20 12:59:26.163 27021-28483/com.myApp I/fmod: SystemI::createSoundInternal             : Stream: name='(null)', format=2, channels=2, frequency=44100, lengthbytes=411231, lengthpcm=1472557, pcmblocksize=0, loopstart=0, loopend=0, myAppnnelmask=0x00000000, channelorder=0, peakvolume=0.000000.
2020-10-20 12:59:26.173 27021-28483/com.myApp I/fmod: Thread::initThread                       : Init FMOD file thread. Affinity: 0x8000000000000003, Priority: 0xFFFF7FFC, Stack Size: 49152, Semaphore: No, Sleep Time: 10, Looping: Yes.
2020-10-20 12:59:39.081 27021-28483/com.myApp I/fmod: SystemI::createSoundInternal             : Create name='/data/user/0/com.myApp/files/GameFrame/click.ogg', mode=0x00000102
2020-10-20 12:59:39.083 27021-28483/com.myApp I/fmod: SystemI::createSoundInternal             : Sample 0/0: name='(null)', format=2, channels=2, frequency=44100, lengthbytes=11069, lengthpcm=25238, pcmblocksize=0, loopstart=0, loopend=0, myAppnnelmask=0x00000000, channelorder=0, peakvolume=0.000000.
2020-10-20 12:59:40.581 27021-28483/com.myApp I/fmod: SystemI::createSoundInternal             : Create name='/data/user/0/com.myApp/files/SFX/PopUpClose.ogg', mode=0x00000102
2020-10-20 12:59:40.582 27021-28483/com.myApp I/fmod: SystemI::createSoundInternal             : Sample 0/0: name='(null)', format=2, channels=2, frequency=44100, lengthbytes=14899, lengthpcm=38911, pcmblocksize=0, loopstart=0, loopend=0, myAppnnelmask=0x00000000, channelorder=0, peakvolume=0.000000.
2020-10-20 12:59:47.221 27021-28483/com.myApp I/fmod: SystemI::createSoundInternal             : Create name='/data/user/0/com.myApp/files/Downloads/PRODUCT_EVENTS_ASSETS/2321411391/1/startmyAppode=0x00000102
2020-10-20 12:59:47.233 27021-28483/com.myApp I/fmod: SystemI::createSoundInternal             : Sample 0/0: name='(null)', format=2, channels=2, frequency=22050, lengthbytes=82015, lengthpcm=142695, pcmblocksize=0, loopstart=0, loopend=0, myAppnnelmask=0x00000000, channelorder=0, peakvolume=0.000000.
2020-10-20 12:59:49.512 27021-28358/com.myApp I/fmod: SoundI::release                          : FeaturedLobby.ogg (0x73220b1f88)
2020-10-20 12:59:49.522 27021-28358/com.myApp I/fmod: SoundI::release                          :     (null) (0x73220b2148)
2020-10-20 12:59:49.525 27021-28483/com.myApp I/fmod: SystemI::createSoundInternal             : Create name='/data/user/0/com.myApp/files/Downloads/SMART_ASSET/Paginator_asset/1167209335/FeaturedLobbymyApp82
2020-10-20 12:59:49.526 27021-28483/com.myApp I/fmod: SystemI::createSoundInternal             : Stream: name='(null)', format=2, channels=2, frequency=44100, lengthbytes=411231, lengthpcm=1472557, pcmblocksize=0, loopstart=0, loopend=0, myAppnnelmask=0x00000000, channelorder=0, peakvolume=0.000000.
2020-10-20 12:59:50.060 27021-28358/com.myApp I/fmod: SoundI::release                          : start_popup_sound.ogg (0x730bf9a348)
2020-10-20 12:59:53.611 27021-28483/com.myApp I/fmod: SystemI::createSoundInternal             : Create name='/data/user/0/com.myApp/files/Downloads/SMART_ASSET/Paginator_asset/1167209335/Swipe_lft.oggmyApp
2020-10-20 12:59:53.616 27021-28483/com.myApp I/fmod: SystemI::createSoundInternal             : Sample 0/0: name='(null)', format=2, channels=1, frequency=44100, lengthbytes=8517, lengthpcm=30080, pcmblocksize=0, loopstart=0, loopend=0, myAppnnelmask=0x00000000, channelorder=0, peakvolume=0.000000.
2020-10-20 12:59:54.439 27021-28358/com.myApp I/fmod: SoundI::release                          : FeaturedLobby.ogg (0x730bf9af88)
2020-10-20 12:59:54.441 27021-28358/com.myApp I/fmod: SoundI::release                          :     (null) (0x73220b2148)
2020-10-20 12:59:54.444 27021-28483/com.myApp I/fmod: SystemI::createSoundInternal             : Create name='/data/user/0/com.myApp/files/Downloads/PORTAL/portalCasinoAssets_reno/1484161171/MGM_mmyApp=0x00000182
2020-10-20 12:59:54.454 27021-28483/com.myApp I/fmod: SystemI::createSoundInternal             : Stream: name='(null)', format=2, channels=1, frequency=44100, lengthbytes=891767, lengthpcm=4300672, pcmblocksize=0, loopstart=0, loopend=0, mode=0x00000000, channelmask=0x00000000, channelorder=0, peakvolume=0.000000.

Any updates?

Hi Rafaelb149,

We’ve identified the issue and have some candidate fixes that we are evaluating at for an FMOD release in the near future. We don’t have reason to believe this will affect a game outside of a debug scenario, so the problem should be confined to debug scenarios.

Thanks for the update, looking forward for your fix :slight_smile:

This has been fixed in 2.00.14/2.01.06.