1
Audio / Re: AW: Music popping while playing encrypted OGG files
« on: September 20, 2016, 03:48:15 am »At high CPU utilization it might also be that the music thread isn't getting enough CPU time.
Thanks for writing back! If this is the issue, is there anything I can do about it? Is there something like a buffer size I can increase?
I had seen elsewhere that Laurent posted that the music has a 1 second buffer. Is it possible that SFML waits long enough to replenish this buffer that a few miliseconds might make a difference?
Quote
IMO your decryption algorithm may be too slow, could you post it and some encrypted ogg file?
It's possible. Basically how it works is in my filestream's read() function, I call std::fread() to load up the desired amount of data, then I run through it and XOR it with a (looping) array of pre-computed values. Sounds pretty simple but who knows.