![]() |
Mix_OpenAudio makes crash Windows Kernel | ![]() |
![]() |
![]() |
GameCodingNinja
![]() |
![]() |
Are you calling Mix_OpenAudio "after" you've called SDL_Init? Does your SDL_Init include SDL_INIT_AUDIO | SDL_INIT_EVENTS? What are you passing to the SDL_Init?
Are you compiling the SDL Mixer or are you using the DLL's? I have not encountered any problem using the mixer and I compiling for Windows, Linux and Android. For Windows I use all the provided SDL DLL's. Life is simpler that way. The sound settings I use are... frequency="44100" sound_channels="2" mix_channels="8" chunksize="1024" Just an FYI. A lower chunk size and a higher frequency provides lower sound latency. I've noticed this mostly in Windows. Do you really need "16" mix channels? I'd try 8 to see if that is related to your problem. |
||||||||||
|
![]() |
![]() |
DjPoke
![]() |
![]() |
I've tried what you said, but nothing changes.
I'm under Windows 10 (x64), using Codeblocks, so i must compile with Mingw32 and i have the 32 bits dll's in my project directory. I've added the include & lib directories from the i686 directory, and when i compile in normal mode, it works perfectly. Only GDB dislike my program. I've seen this bug on google, but nobody seems to know where it comes from. |
||||||||||
|
![]() |
![]() |
GameCodingNinja
![]() |
![]() |
What is GDB?
|
||||||||||
|
![]() |
![]() |
DjPoke
![]() |
![]() |
GDB is the GNU Debugger.
You can compile with GCC for a normal compilation, or GDB to debug your game. |
||||||||||
|
![]() |
Mix_OpenAudio makes crash Windows Kernel | ![]() |
Mason Wheeler
Guest
![]() |
![]() |
The worst excuse for an interactive debugger ever to be foisted upon a population of developers that somehow ended up taking it seriously.
From: GameCodingNinja; To: ; Subject: Re: [SDL] Mix_OpenAudio makes crash Windows Kernel Sent: Sat, Oct 29, 2016 11:31:16 PM What is GDB? |
||||||||||
|
![]() |
![]() |
GameCodingNinja
![]() |
![]() |
Oh, that GDB. I'm bad with acronyms.
When I build and run in Linux, I use Netbeans as the IDE and it uses GDB. Everything works fine. For Windows, why not just use the free community version of Visual Studio? It has all the features you'll ever need. That's what I do. Chances are there's a problem with the debugger since it was ported to Windows. The debugger in Visual Studio is really great! |
||||||||||
|
![]() |
![]() |
DjPoke
![]() |
![]() |
Sure, but i need my project to be compiled both on Windows & Linux.
|
||||||||||
|
![]() |
![]() |
Russell
![]() |
![]() |
Hello
You'll need to add SDL_SetHint(SDL_HINT_WINDOWS_DISABLE_THREAD_NAMING, "1"); BEFORE calling any SDL initialization functions, including Mix_Init(...) (even SDL_INIT(SDL_INIT_TIMER); will trigger it) I believe this is because SDL calls RaiseException when the GNU debugger is attached under windows, it appears versions of GDB greater than 7.11 (?) will trigger on this exception, maybe because it doesn't support exceptions that can continue? Check https://bugzilla.libsdl.org/show_bug.cgi?id=2089 for more info |
||||||||||
|