Hi.
First off, I'm using a version built from git repository a few months ago (I checked the log and the audio files haven't been updated in 6 month so it doesn't matter anyway).
Let me try to explain my issue:
When-ever I play a sound, like a button click or random sfx, it starts out quiet and then fades in. The fade is rather quick (~60-90 ms maybe) but if it's a really short sound (like a button bleep or bloop), then it never reaches the set volume and is basically un-hearable. It happens with longer sounds as well. Also, it happens with musics. I can distincly hear the music starting out quietly.
If I manage to play a sound twice in a row (like double clicking or whatever), then the second time it's played at the right volume but if the previous instance has completed playing when playing again, it's back to un-hearable.
It happens both on Windows (Win 7) and Mac ( 10.8 ). But there's a slight difference: on Windows it works fine when I plug in my earphones. When played trough the speakers, the issue arises.
BUT, when I start the game with headphones plugged in and then un-plug them, the speakers work fine. Windows might use different output devices/drivers for each case (I'm not sure) which SFML then picks up on start-up? I have updated my drivers. It's a brand new machine anway, but still. I also have an old XP machine and that works fine. Again, it might be something with the audio drivers/devices.
On Mac it doesn't matter, it's always bugged. I
think it was fine on the previous OS version but I'm not sure. It was defintely fine with SFML 1.6.
That's all I can think of right now. It was also broken in the RC version.
Okay, one more thing. On Mac, I tried playing the sounds with the Finder play button thingy on the file icon. It doesn't work. If the sound is longer, it does. VLC also doesn't play anything. But Audacity does. It's almost like if the sound data isn't long enough, it bugs out.
Here are a couple of sound files:
Very short bleep - It's finished before reaching its set volume in SFML
Longer bloop - does reach the volume, but the fade is noticable
One more thing I tried: I added 5 seconds of silence to the end of the first file and then during those 5 seconds, whenever I replayed the sound, it was fine. As soon as the first play ended, the issues was back. It's like it drops the buffer then and has to re-initialize everything on next play.