dynamic_mod.h
changeset 419 e27fe0bfe470
child 470 5cebd6c5be2d
equal deleted inserted replaced
418:e03597bc19a9 419:e27fe0bfe470
       
     1 /*
       
     2     SDL_mixer:  An audio mixer library based on the SDL library
       
     3     Copyright (C) 1997-2009 Sam Lantinga
       
     4 
       
     5     This library is free software; you can redistribute it and/or
       
     6     modify it under the terms of the GNU Library General Public
       
     7     License as published by the Free Software Foundation; either
       
     8     version 2 of the License, or (at your option) any later version.
       
     9 
       
    10     This library is distributed in the hope that it will be useful,
       
    11     but WITHOUT ANY WARRANTY; without even the implied warranty of
       
    12     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
       
    13     Library General Public License for more details.
       
    14 
       
    15     You should have received a copy of the GNU Library General Public
       
    16     License along with this library; if not, write to the Free
       
    17     Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
       
    18 
       
    19     Sam Lantinga
       
    20     slouken@libsdl.org
       
    21 */
       
    22 
       
    23 #ifdef MOD_MUSIC
       
    24 
       
    25 #include "mikmod.h"
       
    26 
       
    27 typedef struct {
       
    28 	int loaded;
       
    29 	void *handle;
       
    30 
       
    31 	void (*MikMod_Exit)(void);
       
    32 	CHAR* (*MikMod_InfoDriver)(void);
       
    33 	CHAR* (*MikMod_InfoLoader)(void);
       
    34 	BOOL (*MikMod_Init)(CHAR*);
       
    35 	void (*MikMod_RegisterAllLoaders)(void);
       
    36 	void (*MikMod_RegisterDriver)(struct MDRIVER*);
       
    37 	int* MikMod_errno;
       
    38 	char* (*MikMod_strerror)(int);
       
    39 	BOOL (*Player_Active)(void);
       
    40 	void (*Player_Free)(MODULE*);
       
    41 	MODULE* (*Player_LoadGeneric)(MREADER*,int,BOOL);
       
    42 	void (*Player_SetPosition)(UWORD);
       
    43 	void (*Player_SetVolume)(SWORD);
       
    44 	void (*Player_Start)(MODULE*);
       
    45 	void (*Player_Stop)(void);
       
    46 	ULONG (*VC_WriteBytes)(SBYTE*,ULONG);
       
    47 	struct MDRIVER* drv_nos;
       
    48 	UWORD* md_device;
       
    49 	UWORD* md_mixfreq;
       
    50 	UWORD* md_mode;
       
    51 	UBYTE* md_musicvolume;
       
    52 	UBYTE* md_pansep;
       
    53 	UBYTE* md_reverb;
       
    54 	UBYTE* md_sndfxvolume;
       
    55 	UBYTE* md_volume;
       
    56 } mikmod_loader;
       
    57 
       
    58 extern mikmod_loader mikmod;
       
    59 
       
    60 extern int Mix_InitMOD();
       
    61 extern void Mix_QuitMOD();
       
    62 
       
    63 #endif