-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PlaySound() with SOUND_STREAM crash in debug mode. #22
Comments
Did you use a specific soloud audio backend? Wonder as I am using the same flags without issues here (albeit I wrapped everything in custom classes - code from a time before soloud landed in NG). Can you check where it crashes exactly? (build with GDB information and run within "gdb -r yourapp") |
im use -> Import Audio.AudioMiniAudio Maybe it's because of the platform I'm using (win32)? There are two files in the archive - ogg and code that reproduces the crash in debug mode (everything works in release mode). Ok. I haven't debugged like that for a long time... I'll try to remember... |
There it fails for me.
I see 2 loops printed in the debug build until it segfaults. As the crashing behaviour already cries out: this is most probably an error happening in "C-Land" (so in the generated C code, in wrapped library C-Code, ...) Might be something directly in "soloud.mod/soloud/src/backend/miniaudio". |
I get a pop-up window "EXCEPTION_ACCESS_VIOLATION" but the program continues to run - "loop" is printed all the time without stopping, after pressing the ok button - the operating system offers to terminate the program abnormally. |
You are on windows right? Maybe on your computer Os the main thread is not stopped in such a problematic situation.
If you enable gdb debug builds and recompile brl.mod and audio.mod (so it contains gdb information too) then execute gdb (it is in the mingw bin folder) and once you see the crash you might enter "bt" for a backtrace. Dunno if it halts at all ...if your main thread is still "looping".
Selecting the soloudaudio backend instead might solve your issues for now (while the miniaudio one is still..apparent).
|
Yes. 32 bit Windows 8.1. As far as I remember... -> "bmk makemods -a -gdb brl" ? |
if you enter "bt" after the crash |
`If FileType( "stream/ambient_"+ambient+".ogg" )=FILETYPE_FILE
End If`
In release mode works fine.
The text was updated successfully, but these errors were encountered: