dynamic_mp3.h
author Sam Lantinga <slouken@libsdl.org>
Sun, 08 Nov 2009 18:40:07 +0000
changeset 474 a2c238c0c4b2
parent 470 5cebd6c5be2d
child 518 8bc9b5fd2aae
permissions -rw-r--r--
Don't break binary compatibility!
slouken@314
     1
/*
slouken@314
     2
    SDL_mixer:  An audio mixer library based on the SDL library
slouken@386
     3
    Copyright (C) 1997-2009 Sam Lantinga
slouken@314
     4
slouken@314
     5
    This library is free software; you can redistribute it and/or
slouken@314
     6
    modify it under the terms of the GNU Library General Public
slouken@314
     7
    License as published by the Free Software Foundation; either
slouken@314
     8
    version 2 of the License, or (at your option) any later version.
slouken@314
     9
slouken@314
    10
    This library is distributed in the hope that it will be useful,
slouken@314
    11
    but WITHOUT ANY WARRANTY; without even the implied warranty of
slouken@314
    12
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
slouken@314
    13
    Library General Public License for more details.
slouken@314
    14
slouken@314
    15
    You should have received a copy of the GNU Library General Public
slouken@314
    16
    License along with this library; if not, write to the Free
slouken@314
    17
    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
slouken@314
    18
slouken@314
    19
    Sam Lantinga
slouken@314
    20
    slouken@libsdl.org
slouken@314
    21
*/
slouken@314
    22
slouken@314
    23
#ifdef MP3_MUSIC
slouken@314
    24
#include "smpeg.h"
slouken@314
    25
slouken@314
    26
typedef struct {
slouken@314
    27
	int loaded;
slouken@314
    28
	void *handle;
slouken@314
    29
	void (*SMPEG_actualSpec)( SMPEG *mpeg, SDL_AudioSpec *spec );
slouken@314
    30
	void (*SMPEG_delete)( SMPEG* mpeg );
slouken@314
    31
	void (*SMPEG_enableaudio)( SMPEG* mpeg, int enable );
slouken@314
    32
	void (*SMPEG_enablevideo)( SMPEG* mpeg, int enable );
slouken@314
    33
	SMPEG* (*SMPEG_new)(const char *file, SMPEG_Info* info, int sdl_audio);
slouken@314
    34
	SMPEG* (*SMPEG_new_rwops)(SDL_RWops *src, SMPEG_Info* info, int sdl_audio);
slouken@314
    35
	void (*SMPEG_play)( SMPEG* mpeg );
slouken@314
    36
	int (*SMPEG_playAudio)( SMPEG *mpeg, Uint8 *stream, int len );
slouken@314
    37
	void (*SMPEG_rewind)( SMPEG* mpeg );
slouken@314
    38
	void (*SMPEG_setvolume)( SMPEG* mpeg, int volume );
slouken@314
    39
	void (*SMPEG_skip)( SMPEG* mpeg, float seconds );
slouken@314
    40
	SMPEGstatus (*SMPEG_status)( SMPEG* mpeg );
slouken@314
    41
	void (*SMPEG_stop)( SMPEG* mpeg );
slouken@314
    42
} smpeg_loader;
slouken@314
    43
slouken@314
    44
extern smpeg_loader smpeg;
slouken@314
    45
slouken@470
    46
#endif /* MUSIC_MP3 */
slouken@470
    47
slouken@314
    48
extern int Mix_InitMP3();
slouken@314
    49
extern void Mix_QuitMP3();