I’m currently working on an Android project with FMOD.
When it plays an mp3 file for the first time, there’s no problem.
But after that, I can hear a pop noise when I start playing ANY FILE again.
I tried :
-Open SL ES
-The latest version (2.01.05)
I’m using Galaxy S10 Plus, by the way. (Android 10)
To me, it seemed like FMOD kept a little bit of the former audio in the buffer and that part was shortly played right before starting.
That’s why there’s no noise when starting for the first time or when the former audio ends/stops with low volume.
I think this issue can be fixed if there’s any way for me to free the buffer manually before calling FMOD_System_PlaySound().
All I did was this :
FMOD_System_CreateSound(g_System, filePath, FMOD_CREATESAMPLE, NULL, &g_Sound);
FMOD_System_PlaySound(g_System, g_Sound, g_ChannelGroup, TRUE, &g_SoundChannel);
FMOD_Channel_SetPosition(g_SoundChannel, newPos, FMOD_TIMEUNIT_MS);
What can I do to solve this problem?
One more question.
I know I need to add a little bit of ramp manually before muting/pausing/stopping in the middle of the loud sound to avoid a pop noise.
But what about unmuting and unpausing?
Do I need to implement a small fade-in for these features myself too?
Do other audio players do this internally to prevent such a noise?