I’ve just updated to FMOD 2.01.10 from 1.10.20, and while playing a sound sometimes it stutters and logcat shows the text I’m pasting below. Any idea? It was working fine for several years until I updated to FMOD 2:
2021-07-01 11:32:43.218 25729-25984/mypkg D/AAudio: AAudioStream_requestStop(s#3) called
2021-07-01 11:32:43.218 25729-26212/mypkg D/AudioStreamInternalPlay_Client: callbackLoop() exiting, result = 96, isActive() = 1 <<<<<<<<<<<<<<
2021-07-01 11:32:43.219 25729-25984/mypkg D/IsochronousClockModel: stop(nanos = 588397943124383) max lateness = 96 micros
2021-07-01 11:32:43.219 25729-25984/mypkg D/AAudioStream: setState(s#3) from 4 to 9
2021-07-01 11:32:43.282 25729-25984/mypkg D/mypkg: PlayerBase::stop() from IPlayer
2021-07-01 11:32:43.282 25729-26208/mypkg I/fmod: Thread::callback : FMOD mixer thread finished.
2021-07-01 11:32:43.283 25729-25984/mypkg D/AAudio: AAudioStream_close(s#3) called ---------------
2021-07-01 11:32:43.283 25729-25984/mypkg D/AAudioStream: setState(s#3) from 9 to 11
2021-07-01 11:32:43.385 25729-25984/mypkg D/AAudioStream: setState(s#3) from 11 to 11
2021-07-01 11:32:43.385 25729-25984/mypkg E/AAudioStream: setState(3) tried to set to 11 but already CLOSING
2021-07-01 11:32:43.385 25729-25984/mypkg D/AAudioStream: setState(s#3) from 11 to 12
2021-07-01 11:32:43.385 25729-25984/mypkg D/AAudioStream: ~AudioStream(s#3) mPlayerBase strongCount = 2
2021-07-01 11:32:43.385 25729-25984/mypkg D/AAudio: AAudioStream_close(s#3) returned 0 ---------
2021-07-01 11:32:43.386 25729-25984/mypkg I/AAudio: AAudioStreamBuilder_openStream() called ----------------------------------------
2021-07-01 11:32:43.387 25729-25984/mypkg I/AudioStreamBuilder: rate = 0, channels = 0, format = 0, sharing = SH, dir = OUTPUT
2021-07-01 11:32:43.387 25729-25984/mypkg I/AudioStreamBuilder: device = 0, sessionId = -1, perfMode = 12, callback: OFF with frames = 0
2021-07-01 11:32:43.387 25729-25984/mypkg I/AudioStreamBuilder: usage = 14, contentType = 0, inputPreset = 0, allowedCapturePolicy = 0
2021-07-01 11:32:43.387 25729-25984/mypkg I/AudioStreamBuilder: privacy sensitive = false
2021-07-01 11:32:43.387 25729-25984/mypkg D/mypkg: PlayerBase::PlayerBase()
2021-07-01 11:32:43.407 25729-25984/mypkg D/AudioStreamInternal_Client: open() original HW burst = 96, minMicros = 2000 => SW burst = 96
2021-07-01 11:32:43.407 25729-25984/mypkg D/AAudioStream: setState(s#4) from 0 to 2
2021-07-01 11:32:43.408 25729-25984/mypkg I/AAudio: AAudioStreamBuilder_openStream() returns 0 = AAUDIO_OK for s#4 ----------------
2021-07-01 11:32:43.408 25729-25984/mypkg D/AAudio: AAudioStream_close(s#4) called ---------------
2021-07-01 11:32:43.408 25729-25984/mypkg D/AAudioStream: setState(s#4) from 2 to 11
2021-07-01 11:32:43.511 25729-25984/mypkg D/AAudioStream: setState(s#4) from 11 to 11
2021-07-01 11:32:43.511 25729-25984/mypkg E/AAudioStream: setState(4) tried to set to 11 but already CLOSING
2021-07-01 11:32:43.511 25729-25984/mypkg D/AAudioStream: setState(s#4) from 11 to 12
2021-07-01 11:32:43.511 25729-25984/mypkg D/AAudioStream: ~AudioStream(s#4) mPlayerBase strongCount = 2
2021-07-01 11:32:43.511 25729-25984/mypkg D/AAudio: AAudioStream_close(s#4) returned 0 ---------
2021-07-01 11:32:43.513 25729-25984/mypkg I/fmod: FMOD::supportsLowLatency : Low latency = true, Pro Audio = true, Bluetooth On = false, Acceptable Block Size = true (96)
2021-07-01 11:32:43.513 25729-25984/mypkg I/AAudio: AAudioStreamBuilder_openStream() called ----------------------------------------
2021-07-01 11:32:43.513 25729-25984/mypkg I/AudioStreamBuilder: rate = 0, channels = 0, format = 0, sharing = SH, dir = OUTPUT
2021-07-01 11:32:43.513 25729-25984/mypkg I/AudioStreamBuilder: device = 0, sessionId = -1, perfMode = 12, callback: ON with frames = 0
2021-07-01 11:32:43.513 25729-25984/mypkg I/AudioStreamBuilder: usage = 14, contentType = 0, inputPreset = 0, allowedCapturePolicy = 0
2021-07-01 11:32:43.513 25729-25984/mypkg I/AudioStreamBuilder: privacy sensitive = false
2021-07-01 11:32:43.514 25729-25984/mypkg D/mypkg: PlayerBase::PlayerBase()
2021-07-01 11:32:43.530 25729-25984/mypkg D/AudioStreamInternal_Client: open() original HW burst = 96, minMicros = 2000 => SW burst = 96
2021-07-01 11:32:43.530 25729-25984/mypkg D/AAudioStream: setState(s#5) from 0 to 2
2021-07-01 11:32:43.532 25729-25984/mypkg I/AAudio: AAudioStreamBuilder_openStream() returns 0 = AAUDIO_OK for s#5 ----------------
2021-07-01 11:32:43.532 25729-25984/mypkg D/AAudio: AAudioStream_close(s#5) called ---------------
2021-07-01 11:32:43.532 25729-25984/mypkg D/AAudioStream: setState(s#5) from 2 to 11
2021-07-01 11:32:43.634 25729-25984/mypkg D/AAudioStream: setState(s#5) from 11 to 11
2021-07-01 11:32:43.634 25729-25984/mypkg E/AAudioStream: setState(5) tried to set to 11 but already CLOSING
2021-07-01 11:32:43.634 25729-25984/mypkg D/AAudioStream: setState(s#5) from 11 to 12
2021-07-01 11:32:43.634 25729-25984/mypkg D/AAudioStream: ~AudioStream(s#5) mPlayerBase strongCount = 2
2021-07-01 11:32:43.634 25729-25984/mypkg D/AAudio: AAudioStream_close(s#5) returned 0 ---------
2021-07-01 11:32:43.634 25729-25984/mypkg I/AAudio: AAudioStreamBuilder_openStream() called ----------------------------------------
2021-07-01 11:32:43.634 25729-25984/mypkg I/AudioStreamBuilder: rate = 0, channels = 0, format = 0, sharing = SH, dir = OUTPUT
2021-07-01 11:32:43.634 25729-25984/mypkg I/AudioStreamBuilder: device = 0, sessionId = -1, perfMode = 12, callback: ON with frames = 0
2021-07-01 11:32:43.634 25729-25984/mypkg I/AudioStreamBuilder: usage = 14, contentType = 0, inputPreset = 0, allowedCapturePolicy = 0
2021-07-01 11:32:43.634 25729-25984/mypkg I/AudioStreamBuilder: privacy sensitive = false
2021-07-01 11:32:43.634 25729-25984/mypkg D/mypkg: PlayerBase::PlayerBase()
2021-07-01 11:32:43.654 25729-25984/mypkg D/AudioStreamInternal_Client: open() original HW burst = 96, minMicros = 2000 => SW burst = 96
2021-07-01 11:32:43.654 25729-25984/mypkg D/AAudioStream: setState(s#6) from 0 to 2
2021-07-01 11:32:43.655 25729-25984/mypkg I/AAudio: AAudioStreamBuilder_openStream() returns 0 = AAUDIO_OK for s#6 ----------------
2021-07-01 11:32:43.657 25729-25984/mypkg I/fmod: OutputAAudio::init : Sample rate: HW = 48000, SW = 24000 Block size: HW = 96, SW = 512.
2021-07-01 11:32:43.657 25729-25984/mypkg I/fmod: DownMix::init : dspbuffersize: 512 rate: 24000. output speaker mode: 3, input speaker mode 2
2021-07-01 11:32:43.657 25729-25984/mypkg I/fmod: DownMix::init : done.
2021-07-01 11:32:43.657 25729-25984/mypkg I/fmod: SystemI::startDriver : Output requires a sample rate of 48000Hz, resampling will occur.
2021-07-01 11:32:43.657 25729-25984/mypkg I/fmod: Thread::initThread : Init FMOD mixer thread. Affinity: 0x8000000000000001, Priority: 0xFFFF7FFA, Stack Size: 81920, Semaphore: Yes, Sleep Time: 0, Looping: Yes.
2021-07-01 11:32:43.658 25729-25984/mypkg D/AAudio: AAudioStream_requestStart(s#6) called --------------
2021-07-01 11:32:43.658 25729-25984/mypkg D/AAudioStream: setState(s#6) from 2 to 3
2021-07-01 11:32:43.760 25729-25984/mypkg D/mypkg: PlayerBase::start() from IPlayer
2021-07-01 11:32:43.761 25729-25984/mypkg D/AAudio: AAudioStream_requestStart(s#6) returned 0 ---------
2021-07-01 11:32:43.763 25729-26313/mypkg D/AudioStreamInternalPlay_Client: callbackLoop() entering >>>>>>>>>>>>>>>
2021-07-01 11:32:43.763 25729-26313/mypkg D/AudioStreamInternal_Client: onEventFromServer - got AAUDIO_SERVICE_EVENT_STARTED
2021-07-01 11:32:43.763 25729-26313/mypkg D/AAudioStream: setState(s#6) from 3 to 4
2021-07-01 11:32:44.846 25729-25984/mypkg D/AAudio: AAudioStream_requestStop(s#6) called
2021-07-01 11:32:44.846 25729-26313/mypkg D/AudioStreamInternalPlay_Client: callbackLoop() exiting, result = 96, isActive() = 1 <<<<<<<<<<<<<<
2021-07-01 11:32:44.846 25729-25984/mypkg D/IsochronousClockModel: stop(nanos = 588399570961316) max lateness = 75 micros
2021-07-01 11:32:44.846 25729-25984/mypkg D/AAudioStream: setState(s#6) from 4 to 9
2021-07-01 11:32:44.954 25729-25984/mypkg D/mypkg: PlayerBase::stop() from IPlayer
2021-07-01 11:32:44.955 25729-26309/mypkg I/fmod: Thread::callback : FMOD mixer thread finished.
2021-07-01 11:32:44.955 25729-25984/mypkg D/AAudio: AAudioStream_close(s#6) called ---------------
2021-07-01 11:32:44.956 25729-25984/mypkg D/AAudioStream: setState(s#6) from 9 to 11
2021-07-01 11:32:45.059 25729-25984/mypkg D/AAudioStream: setState(s#6) from 11 to 11
2021-07-01 11:32:45.059 25729-25984/mypkg E/AAudioStream: setState(6) tried to set to 11 but already CLOSING
2021-07-01 11:32:45.059 25729-25984/mypkg D/AAudioStream: setState(s#6) from 11 to 12
2021-07-01 11:32:45.059 25729-25984/mypkg D/AAudioStream: ~AudioStream(s#6) mPlayerBase strongCount = 2
2021-07-01 11:32:45.059 25729-25984/mypkg D/AAudio: AAudioStream_close(s#6) returned 0 ---------
2021-07-01 11:32:45.060 25729-25984/mypkg I/AAudio: AAudioStreamBuilder_openStream() called ----------------------------------------
2021-07-01 11:32:45.060 25729-25984/mypkg I/AudioStreamBuilder: rate = 0, channels = 0, format = 0, sharing = SH, dir = OUTPUT
2021-07-01 11:32:45.060 25729-25984/mypkg I/AudioStreamBuilder: device = 0, sessionId = -1, perfMode = 12, callback: OFF with frames = 0
2021-07-01 11:32:45.060 25729-25984/mypkg I/AudioStreamBuilder: usage = 14, contentType = 0, inputPreset = 0, allowedCapturePolicy = 0
2021-07-01 11:32:45.060 25729-25984/mypkg I/AudioStreamBuilder: privacy sensitive = false
2021-07-01 11:32:45.060 25729-25984/mypkg D/mypkg: PlayerBase::PlayerBase()
2021-07-01 11:32:45.081 25729-25984/mypkg D/AudioStreamInternal_Client: open() original HW burst = 96, minMicros = 2000 => SW burst = 96
2021-07-01 11:32:45.081 25729-25984/mypkg D/AAudioStream: setState(s#7) from 0 to 2
2021-07-01 11:32:45.082 25729-25984/mypkg I/AAudio: AAudioStreamBuilder_openStream() returns 0 = AAUDIO_OK for s#7 ----------------
2021-07-01 11:32:45.082 25729-25984/mypkg D/AAudio: AAudioStream_close(s#7) called ---------------
2021-07-01 11:32:45.082 25729-25984/mypkg D/AAudioStream: setState(s#7) from 2 to 11
2021-07-01 11:32:45.185 25729-25984/mypkg D/AAudioStream: setState(s#7) from 11 to 11
2021-07-01 11:32:45.185 25729-25984/mypkg E/AAudioStream: setState(7) tried to set to 11 but already CLOSING
2021-07-01 11:32:45.185 25729-25984/mypkg D/AAudioStream: setState(s#7) from 11 to 12
2021-07-01 11:32:45.185 25729-25984/mypkg D/AAudioStream: ~AudioStream(s#7) mPlayerBase strongCount = 2
2021-07-01 11:32:45.185 25729-25984/mypkg D/AAudio: AAudioStream_close(s#7) returned 0 ---------
2021-07-01 11:32:45.188 25729-25984/mypkg I/fmod: FMOD::supportsLowLatency : Low latency = true, Pro Audio = true, Bluetooth On = false, Acceptable Block Size = true (96)
2021-07-01 11:32:45.188 25729-25984/mypkg I/AAudio: AAudioStreamBuilder_openStream() called ----------------------------------------
2021-07-01 11:32:45.188 25729-25984/mypkg I/AudioStreamBuilder: rate = 0, channels = 0, format = 0, sharing = SH, dir = OUTPUT
2021-07-01 11:32:45.188 25729-25984/mypkg I/AudioStreamBuilder: device = 0, sessionId = -1, perfMode = 12, callback: ON with frames = 0
2021-07-01 11:32:45.188 25729-25984/mypkg I/AudioStreamBuilder: usage = 14, contentType = 0, inputPreset = 0, allowedCapturePolicy = 0
2021-07-01 11:32:45.188 25729-25984/mypkg I/AudioStreamBuilder: privacy sensitive = false
2021-07-01 11:32:45.188 25729-25984/mypkg D/mypkg: PlayerBase::PlayerBase()
2021-07-01 11:32:45.203 25729-25984/mypkg D/AudioStreamInternal_Client: open() original HW burst = 96, minMicros = 2000 => SW burst = 96
2021-07-01 11:32:45.203 25729-25984/mypkg D/AAudioStream: setState(s#8) from 0 to 2
2021-07-01 11:32:45.205 25729-25984/mypkg I/AAudio: AAudioStreamBuilder_openStream() returns 0 = AAUDIO_OK for s#8 ----------------
2021-07-01 11:32:45.205 25729-25984/mypkg D/AAudio: AAudioStream_close(s#8) called ---------------
2021-07-01 11:32:45.205 25729-25984/mypkg D/AAudioStream: setState(s#8) from 2 to 11
2021-07-01 11:32:45.307 25729-25984/mypkg D/AAudioStream: setState(s#8) from 11 to 11
2021-07-01 11:32:45.307 25729-25984/mypkg E/AAudioStream: setState(8) tried to set to 11 but already CLOSING
2021-07-01 11:32:45.307 25729-25984/mypkg D/AAudioStream: setState(s#8) from 11 to 12
2021-07-01 11:32:45.307 25729-25984/mypkg D/AAudioStream: ~AudioStream(s#8) mPlayerBase strongCount = 2
2021-07-01 11:32:45.307 25729-25984/mypkg D/AAudio: AAudioStream_close(s#8) returned 0 ---------
2021-07-01 11:32:45.307 25729-25984/mypkg I/AAudio: AAudioStreamBuilder_openStream() called ----------------------------------------
2021-07-01 11:32:45.307 25729-25984/mypkg I/AudioStreamBuilder: rate = 0, channels = 0, format = 0, sharing = SH, dir = OUTPUT
2021-07-01 11:32:45.307 25729-25984/mypkg I/AudioStreamBuilder: device = 0, sessionId = -1, perfMode = 12, callback: ON with frames = 0
2021-07-01 11:32:45.307 25729-25984/mypkg I/AudioStreamBuilder: usage = 14, contentType = 0, inputPreset = 0, allowedCapturePolicy = 0
2021-07-01 11:32:45.307 25729-25984/mypkg I/AudioStreamBuilder: privacy sensitive = false
2021-07-01 11:32:45.307 25729-25984/mypkg D/mypkg: PlayerBase::PlayerBase()
2021-07-01 11:32:45.324 25729-25984/mypkg D/AudioStreamInternal_Client: open() original HW burst = 96, minMicros = 2000 => SW burst = 96
2021-07-01 11:32:45.324 25729-25984/mypkg D/AAudioStream: setState(s#9) from 0 to 2
2021-07-01 11:32:45.325 25729-25984/mypkg I/AAudio: AAudioStreamBuilder_openStream() returns 0 = AAUDIO_OK for s#9 ----------------
2021-07-01 11:32:45.328 25729-25984/mypkg I/fmod: OutputAAudio::init : Sample rate: HW = 48000, SW = 24000 Block size: HW = 96, SW = 512.
2021-07-01 11:32:45.328 25729-25984/mypkg I/fmod: DownMix::init : dspbuffersize: 512 rate: 24000. output speaker mode: 3, input speaker mode 2
2021-07-01 11:32:45.328 25729-25984/mypkg I/fmod: DownMix::init : done.
2021-07-01 11:32:45.328 25729-25984/mypkg I/fmod: SystemI::startDriver : Output requires a sample rate of 48000Hz, resampling will occur.
2021-07-01 11:32:45.328 25729-25984/mypkg I/fmod: Thread::initThread : Init FMOD mixer thread. Affinity: 0x8000000000000001, Priority: 0xFFFF7FFA, Stack Size: 81920, Semaphore: Yes, Sleep Time: 0, Looping: Yes.
2021-07-01 11:32:45.328 25729-25984/mypkg D/AAudio: AAudioStream_requestStart(s#9) called --------------
2021-07-01 11:32:45.328 25729-25984/mypkg D/AAudioStream: setState(s#9) from 2 to 3
2021-07-01 11:32:45.430 25729-25984/mypkg D/mypkg: PlayerBase::start() from IPlayer
2021-07-01 11:32:45.430 25729-25984/mypkg D/AAudio: AAudioStream_requestStart(s#9) returned 0 ---------
2021-07-01 11:32:45.431 25729-26330/mypkg D/AudioStreamInternalPlay_Client: callbackLoop() entering >>>>>>>>>>>>>>>
2021-07-01 11:32:45.431 25729-26330/mypkg D/AudioStreamInternal_Client: onEventFromServer - got AAUDIO_SERVICE_EVENT_STARTED
2021-07-01 11:32:45.431 25729-26330/mypkg D/AAudioStream: setState(s#9) from 3 to 4