Output rate on android

Hello, I’m making an application that modifies sounds, the problem is when calling the OnAudioFilterRead () function on Android, the audio that I extract comes out with very low frequency. On PC it is executed correctly. Why can this be?

Maybe you assumed a certain sample rate? I have never checked it on Android but the sample frequency of the audio hardware might be lower. This might help. If you need further help you have to be more specific about your “modifications” inside OnAudioFilterRead. Keep in mind that the buffer size doesn’t need to be the same on different platforms.