Sound Cannot be Heard

load bank and bank assets, load event, play event, i havent get any error or warning msg, but the sound cannot be heard.
my code is like this:

FMOD::Studio::EventDescription* eventDescription = _loadEventDesc(eventName);
FMOD::Studio::EventInstance * eventInstance;
if(eventDescription){
Preformatted textFMOD_RESULT result = eventDescription->createInstance(eventInstance);
eventInstance->start();
}

04-26 14:54:25.672 5050-5098 A0FF0D/fmod com. I System::create : Header version = 2.02.21. Current version = 2.02.21.
04-26 14:54:25.674 5050-5098 A0FF0D/fmod com. I SystemI::setOutputInternal : Setting output to ‘FMOD OpenHarmony Audio Output’
04-26 14:54:25.674 5050-5098 A0FF0D/fmod com. I Manager::init : maxchannels = 1024 studioflags = 00000000 flags 00000000 extradriverdata 0.
04-26 14:54:25.674 5050-5098 A0FF0D/fmod com. I SystemI::init : Initialize version=20221 (141420), maxchannels=1024, flags=0x00020000
04-26 14:54:25.706 5050-5098 A0FF0D/fmod com. I OHAudio_Init : Output buffer size: 1114 samples, DSP buffer: 1024 * 4.
04-26 14:54:25.707 5050-5098 A0FF0D/fmod com. I DownMix::init : dspbuffersize: 1024 rate: 48000. output speaker mode: 3, input speaker mode 6
04-26 14:54:25.707 5050-5098 A0FF0D/fmod com. I DownMix::init : done.
04-26 14:54:25.711 5050-5098 A0FF0D/fmod com. I Thread::initThread : Init FMOD stream thread. Affinity: 0x4000000000000003, Priority: 0xFFFF7FFB, Stack Size: 98304, Semaphore: No, Sleep Time: 10, Looping: Yes.
04-26 14:54:25.723 5050-5307 A0FF0D/fmod com. W OutputRingBuffer::read : Insufficient buffer size detected, requested 106992 bytes, buffer size is 98304 bytes.

i tried this, and it works!

m_lowLevelSystem->setDSPBufferSize(2048, 4);

1 Like

Hi,

Thank you for sharing the solution!