1
Audio / Music popping while playing encrypted OGG files
« on: September 18, 2016, 01:41:14 am »
Hey there! Thanks again for this great library! I have a game which uses SFML for audio, and I've had this odd problem for a few years now where the music makes a cracking / popping sound randomly.
The music is encoded in OGG files which are decrypted using a custom sf::InputStream as far as I can tell nothing is out of the ordinary there.
The weird thing is that this problem seems to be made worse with high CPU load. My game is eating up a lot of cycles, I guess. If I "relax" the CPU usage by calling Sleep() every once in a while, the problem is made better. Users with lower-spec machines tell me the problem is worse for them.
Can anyone help think of reasons why this could possibly be happening? I know that there is a problem with OGG files needing normalization, but I'm not sure if that's my problem as it doesn't sound random or affected by CPU load the way my issue does.
The music is encoded in OGG files which are decrypted using a custom sf::InputStream as far as I can tell nothing is out of the ordinary there.
The weird thing is that this problem seems to be made worse with high CPU load. My game is eating up a lot of cycles, I guess. If I "relax" the CPU usage by calling Sleep() every once in a while, the problem is made better. Users with lower-spec machines tell me the problem is worse for them.
Can anyone help think of reasons why this could possibly be happening? I know that there is a problem with OGG files needing normalization, but I'm not sure if that's my problem as it doesn't sound random or affected by CPU load the way my issue does.