I've been making a game where the player can play their own music from the app, but when i try to pause it, it only pauses sometimes. Other times it will just ignore my request or get caught between two beats going back and forth.
alSourcePause(source)
alDeleteSources(1, &source);
alDeleteBuffers(BUFFERS_NUMBER, buffers);
Any advice?