Mix_OpenAudio makes crash Windows Kernel
"DjPoke" <[email protected]>
| Newsgroups | gmane.comp.lib.sdl |
|---|---|
| Message-ID | <[email protected]> |
Hello peoples :D
I've a problem with Mix_OpenAudio in SDL 2.0, that makes crash Windows kernel.
If i compile with GCC, no problems.
If i compile with GDB, the game i'm developping crashes.
I'm under Codeblocks 16.0.1.
I've tried both MinGW that comes with it, and TGM_GCC, it's the same thing.
This is my source code.
I've tried to enable, disable command lines, it's really Mix_OpenAudio that makes GDB crashes.
Code:
// load support for the OGG sample/music formats
int flags = MIX_INIT_OGG;
int initted = Mix_Init(flags);
if((initted & flags) != flags) {
printf("Mix_Init: Impossible d'initialiser le support ogg !\n");
printf("Mix_Init: %s\n", Mix_GetError());
return 1;
}
// TODO: résoudre le bug qui empêche GDB de fonctionner (ici !!!)
if(Mix_OpenAudio(44100, MIX_DEFAULT_FORMAT, MIX_DEFAULT_CHANNELS, 2048) < 0) {
fprintf(stdout,"Impossible d'ouvrir Mix_OpenAudio: %s", SDL_GetError());
return 1;
}
// Allouer 16 canneaux de mixage
Mix_AllocateChannels(16);
And the error :
>
> In RaiseException () (C:\WINDOWS\System32\KernelBase.dll
>
------------------------
10 REM *** This is the universe ***
20 GOTO 20
_______________________________________________
SDL mailing list
[email protected]
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org