dynamic_mp3.h
author Sam Lantinga <slouken@libsdl.org>
Mon, 09 Jan 2012 07:34:10 -0500
changeset 558 7915d5cc775a
parent 542 3de4970b36d4
child 601 05123263dab3
child 902 6c862e733898
permissions -rw-r--r--
Fixed version of smpeg.dll that doesn't dynamically link to libstdc++-6.dll
slouken@314
     1
/*
slouken@518
     2
  SDL_mixer:  An audio mixer library based on the SDL library
slouken@518
     3
  Copyright (C) 1997-2012 Sam Lantinga <slouken@libsdl.org>
slouken@314
     4
slouken@518
     5
  This software is provided 'as-is', without any express or implied
slouken@518
     6
  warranty.  In no event will the authors be held liable for any damages
slouken@518
     7
  arising from the use of this software.
slouken@314
     8
slouken@518
     9
  Permission is granted to anyone to use this software for any purpose,
slouken@518
    10
  including commercial applications, and to alter it and redistribute it
slouken@518
    11
  freely, subject to the following restrictions:
slouken@314
    12
slouken@518
    13
  1. The origin of this software must not be misrepresented; you must not
slouken@518
    14
     claim that you wrote the original software. If you use this software
slouken@518
    15
     in a product, an acknowledgment in the product documentation would be
slouken@518
    16
     appreciated but is not required.
slouken@518
    17
  2. Altered source versions must be plainly marked as such, and must not be
slouken@518
    18
     misrepresented as being the original software.
slouken@518
    19
  3. This notice may not be removed or altered from any source distribution.
slouken@314
    20
*/
slouken@314
    21
slouken@314
    22
#ifdef MP3_MUSIC
slouken@314
    23
#include "smpeg.h"
slouken@314
    24
slouken@314
    25
typedef struct {
slouken@314
    26
	int loaded;
slouken@314
    27
	void *handle;
slouken@314
    28
	void (*SMPEG_actualSpec)( SMPEG *mpeg, SDL_AudioSpec *spec );
slouken@314
    29
	void (*SMPEG_delete)( SMPEG* mpeg );
slouken@314
    30
	void (*SMPEG_enableaudio)( SMPEG* mpeg, int enable );
slouken@314
    31
	void (*SMPEG_enablevideo)( SMPEG* mpeg, int enable );
slouken@314
    32
	SMPEG* (*SMPEG_new_rwops)(SDL_RWops *src, SMPEG_Info* info, int sdl_audio);
slouken@314
    33
	void (*SMPEG_play)( SMPEG* mpeg );
slouken@314
    34
	int (*SMPEG_playAudio)( SMPEG *mpeg, Uint8 *stream, int len );
slouken@314
    35
	void (*SMPEG_rewind)( SMPEG* mpeg );
slouken@314
    36
	void (*SMPEG_setvolume)( SMPEG* mpeg, int volume );
slouken@314
    37
	void (*SMPEG_skip)( SMPEG* mpeg, float seconds );
slouken@314
    38
	SMPEGstatus (*SMPEG_status)( SMPEG* mpeg );
slouken@314
    39
	void (*SMPEG_stop)( SMPEG* mpeg );
slouken@314
    40
} smpeg_loader;
slouken@314
    41
slouken@314
    42
extern smpeg_loader smpeg;
slouken@314
    43
slouken@470
    44
#endif /* MUSIC_MP3 */
slouken@470
    45
slouken@314
    46
extern int Mix_InitMP3();
slouken@314
    47
extern void Mix_QuitMP3();