[SDL] Trouble using sdl_mixer and OGG files
Ken Rogoway
Ken at HomebrewSoftware.com
Fri Jun 8 00:56:12 PDT 2007
-----Original Message-----
From: sdl-bounces at lists.libsdl.org [mailto:sdl-bounces at lists.libsdl.org] On
Behalf Of Sam Lantinga
Sent: Friday, June 08, 2007 12:01 AM
To: A list for developers using the SDL library. (includes SDL-announce)
Subject: Re: [SDL] Trouble using sdl_mixer and OGG files
> >I have attached a short OGG file that demonstrates this crash using
> >SDL-1.2.11 and SDL_Mixer-1.2.7. Build the PLAYMUS sample app that is
> included with SDL_Mixer
> >and you will see that it crashes with the above error when trying to
> >play
> this OGG file.
> As I thought, switching back to SDL_Mixer-1.2.5 works fine. There
> appears to be a bug in SDL_Mixer-1.2.7 (or else I am doing something
incorrectly).
It works fine for me on Mac OS X. I'm guessing it's a C runtime
incompatibility on Windows. If you build both SDL_mixer and playmus from
source, do you see the problem? If so, can you run it in the debugger and
find out what's going on?
See ya!
-Sam Lantinga, Lead Software Engineer, Blizzard Entertainment
_______________________________________________
SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
Yes, it happens if I build it from source under Windows using Visual Stuido
2003 or VS2005.
This is the code it crashes on:
if ( vorbis.ov_open(fp, &music->vf, NULL, 0) < 0 ) {
The vorbis structure appears to be filled out with pointers to the various
ogg dll functions. The file point is a valid file pointer. In the actual
callback it appears to be crashing trying to do the fseek to the start of
the file. I will try changing the compile type from Multithreaded to single
threaded and see if it still crashes.
Ken Rogoway
Homebrew Software
http://www.homebrewsoftware.com/
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.472 / Virus Database: 269.8.11/838 - Release Date: 6/7/2007
2:21 PM
More information about the SDL
mailing list