jarikomppa / soloud

Free, easy, portable audio engine for games
http://soloud-audio.com
Other
1.8k stars 284 forks source link

Handle closed to early? #186

Closed lamelizard closed 6 years ago

lamelizard commented 6 years ago

Peace, in soloud_xaudio.cpp during deinit it calls data->xaudio2->StopEngine(); which calls OnBufferEnd which calls SetEvent(mBufferEndEvent);. This throws 0xC0000008: An invalid handle was specified. Indeed, mBufferEndEvent was closed several lines before data->xaudio2->StopEngine();. Shouldn't it be closed later or am I the only one with this issue? (Windows 10 x64 but compiling for x86 using MSVC)

jarikomppa commented 6 years ago

That is entirely possible. I didn't make the xaudio2 backend, so I don't really know what's going on with it. If you can debug what's going on, pull requests are welcome.

On Fri, Oct 26, 2018 at 8:51 PM lamelizard notifications@github.com wrote:

Peace, in soloud_xaudio.cpp during deinit it calls data->xaudio2->StopEngine(); which calls OnBufferEnd which calls SetEvent(mBufferEndEvent);. This throws 0xC0000008: An invalid handle was specified. Indeed, mBufferEndEvent was closed several lines before data->xaudio2->StopEngine();. Shouldn't it be closed later or am I the only one with this issue? (Windows 10 x64 but compiling for x86 using MSVC)

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/jarikomppa/soloud/issues/186, or mute the thread https://github.com/notifications/unsubscribe-auth/AEQ_R8-8UsZyTWoimX7_QPZaqHnlNX9eks5uo0u_gaJpZM4X8sNi .