dynamic_mp3.h
changeset 314 8c791a6ba872
child 386 695494546b3c
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/dynamic_mp3.h	Fri May 12 09:42:24 2006 +0000
     1.3 @@ -0,0 +1,49 @@
     1.4 +/*
     1.5 +    SDL_mixer:  An audio mixer library based on the SDL library
     1.6 +    Copyright (C) 1997-2004 Sam Lantinga
     1.7 +
     1.8 +    This library is free software; you can redistribute it and/or
     1.9 +    modify it under the terms of the GNU Library General Public
    1.10 +    License as published by the Free Software Foundation; either
    1.11 +    version 2 of the License, or (at your option) any later version.
    1.12 +
    1.13 +    This library is distributed in the hope that it will be useful,
    1.14 +    but WITHOUT ANY WARRANTY; without even the implied warranty of
    1.15 +    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    1.16 +    Library General Public License for more details.
    1.17 +
    1.18 +    You should have received a copy of the GNU Library General Public
    1.19 +    License along with this library; if not, write to the Free
    1.20 +    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
    1.21 +
    1.22 +    Sam Lantinga
    1.23 +    slouken@libsdl.org
    1.24 +*/
    1.25 +
    1.26 +#ifdef MP3_MUSIC
    1.27 +#include "smpeg.h"
    1.28 +
    1.29 +typedef struct {
    1.30 +	int loaded;
    1.31 +	void *handle;
    1.32 +	void (*SMPEG_actualSpec)( SMPEG *mpeg, SDL_AudioSpec *spec );
    1.33 +	void (*SMPEG_delete)( SMPEG* mpeg );
    1.34 +	void (*SMPEG_enableaudio)( SMPEG* mpeg, int enable );
    1.35 +	void (*SMPEG_enablevideo)( SMPEG* mpeg, int enable );
    1.36 +	SMPEG* (*SMPEG_new)(const char *file, SMPEG_Info* info, int sdl_audio);
    1.37 +	SMPEG* (*SMPEG_new_rwops)(SDL_RWops *src, SMPEG_Info* info, int sdl_audio);
    1.38 +	void (*SMPEG_play)( SMPEG* mpeg );
    1.39 +	int (*SMPEG_playAudio)( SMPEG *mpeg, Uint8 *stream, int len );
    1.40 +	void (*SMPEG_rewind)( SMPEG* mpeg );
    1.41 +	void (*SMPEG_setvolume)( SMPEG* mpeg, int volume );
    1.42 +	void (*SMPEG_skip)( SMPEG* mpeg, float seconds );
    1.43 +	SMPEGstatus (*SMPEG_status)( SMPEG* mpeg );
    1.44 +	void (*SMPEG_stop)( SMPEG* mpeg );
    1.45 +} smpeg_loader;
    1.46 +
    1.47 +extern smpeg_loader smpeg;
    1.48 +
    1.49 +extern int Mix_InitMP3();
    1.50 +extern void Mix_QuitMP3();
    1.51 +
    1.52 +#endif