Oh Yuck! - You are essentially reloading the sound into memory from disk every time it is played (although file system caching should help with any delays).
I worry about what reloading a sound mid-play might do internally - if the SDL sound system is in the middle of playing a sample, you are effectively ripping it out from underneath it.
I've never really looked at what SDL under Linux does when you play the same sample memory while it is already being played...
I worry about what reloading a sound mid-play might do internally - if the SDL sound system is in the middle of playing a sample, you are effectively ripping it out from underneath it.
I've never really looked at what SDL under Linux does when you play the same sample memory while it is already being played...
Comment