Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - devydevdev

Pages: [1]
1
I'm on Windows 8.

I doubt it's the OS since the minimal project I made worked just fine on the same OS. The project where it doesn't work doesn't even poll for device changes or anything, but somehow every single sfml sound and music object get messed up after this occurs.

My next step is to find the full source code for sfml and make a project with it which is referenced in our game, and go step by step to see what the hell is happening.

2
Hello,

After many hours trying to fix it I've given up and decided to come here!

Music plays just fine, but once I unplug my headset and then plug it back in, nothing will sound.

Under a clean project with just the example code, unplugging an audio device has no impact on the internal state of the Music object, and will remain playing it as if nothing occurred (m_samplesProcessed will increase normally), However, on my project, unplugging the audio device causes the Music object to suddenly stop processing samples, not only that, but the variable m_isStreaming will be set to false, the m_endBuffers will change and calling the function GetPlayingOffset will return some wacky numbers, often outside of the boundary.

EDIT: I should mention, that any Music objects created after unplugging and plugging the device will also not sound, their status will remain as playing but its m_samplesProcessed will remain at 0. Basically, absolutely nothing will emit a sound after i've unplugged/plugged.

Do you guys have any clue why this might be occurring?

Thanks!!!

Pages: [1]
anything