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!!!