dynamic_mod.h
changeset 419 e27fe0bfe470
child 470 5cebd6c5be2d
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/dynamic_mod.h	Sat Oct 03 20:43:33 2009 +0000
     1.3 @@ -0,0 +1,63 @@
     1.4 +/*
     1.5 +    SDL_mixer:  An audio mixer library based on the SDL library
     1.6 +    Copyright (C) 1997-2009 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 MOD_MUSIC
    1.27 +
    1.28 +#include "mikmod.h"
    1.29 +
    1.30 +typedef struct {
    1.31 +	int loaded;
    1.32 +	void *handle;
    1.33 +
    1.34 +	void (*MikMod_Exit)(void);
    1.35 +	CHAR* (*MikMod_InfoDriver)(void);
    1.36 +	CHAR* (*MikMod_InfoLoader)(void);
    1.37 +	BOOL (*MikMod_Init)(CHAR*);
    1.38 +	void (*MikMod_RegisterAllLoaders)(void);
    1.39 +	void (*MikMod_RegisterDriver)(struct MDRIVER*);
    1.40 +	int* MikMod_errno;
    1.41 +	char* (*MikMod_strerror)(int);
    1.42 +	BOOL (*Player_Active)(void);
    1.43 +	void (*Player_Free)(MODULE*);
    1.44 +	MODULE* (*Player_LoadGeneric)(MREADER*,int,BOOL);
    1.45 +	void (*Player_SetPosition)(UWORD);
    1.46 +	void (*Player_SetVolume)(SWORD);
    1.47 +	void (*Player_Start)(MODULE*);
    1.48 +	void (*Player_Stop)(void);
    1.49 +	ULONG (*VC_WriteBytes)(SBYTE*,ULONG);
    1.50 +	struct MDRIVER* drv_nos;
    1.51 +	UWORD* md_device;
    1.52 +	UWORD* md_mixfreq;
    1.53 +	UWORD* md_mode;
    1.54 +	UBYTE* md_musicvolume;
    1.55 +	UBYTE* md_pansep;
    1.56 +	UBYTE* md_reverb;
    1.57 +	UBYTE* md_sndfxvolume;
    1.58 +	UBYTE* md_volume;
    1.59 +} mikmod_loader;
    1.60 +
    1.61 +extern mikmod_loader mikmod;
    1.62 +
    1.63 +extern int Mix_InitMOD();
    1.64 +extern void Mix_QuitMOD();
    1.65 +
    1.66 +#endif