dynamic_mod.h
author Sam Lantinga <slouken@libsdl.org>
Sat, 31 Dec 2011 23:28:23 -0500
changeset 528 bc0dfe8ae026
parent 518 8bc9b5fd2aae
child 587 56cad6484b04
child 865 3ffb22a2755b
permissions -rw-r--r--
Backed out changeset 1eddea51f162
slouken@419
     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@419
     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@419
     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@419
    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@419
    20
*/
slouken@419
    21
slouken@419
    22
#ifdef MOD_MUSIC
slouken@419
    23
slouken@419
    24
#include "mikmod.h"
slouken@419
    25
slouken@419
    26
typedef struct {
slouken@419
    27
	int loaded;
slouken@419
    28
	void *handle;
slouken@419
    29
slouken@419
    30
	void (*MikMod_Exit)(void);
slouken@419
    31
	CHAR* (*MikMod_InfoDriver)(void);
slouken@419
    32
	CHAR* (*MikMod_InfoLoader)(void);
slouken@419
    33
	BOOL (*MikMod_Init)(CHAR*);
slouken@419
    34
	void (*MikMod_RegisterAllLoaders)(void);
slouken@419
    35
	void (*MikMod_RegisterDriver)(struct MDRIVER*);
slouken@419
    36
	int* MikMod_errno;
slouken@419
    37
	char* (*MikMod_strerror)(int);
slouken@419
    38
	BOOL (*Player_Active)(void);
slouken@419
    39
	void (*Player_Free)(MODULE*);
slouken@419
    40
	MODULE* (*Player_LoadGeneric)(MREADER*,int,BOOL);
slouken@419
    41
	void (*Player_SetPosition)(UWORD);
slouken@419
    42
	void (*Player_SetVolume)(SWORD);
slouken@419
    43
	void (*Player_Start)(MODULE*);
slouken@419
    44
	void (*Player_Stop)(void);
slouken@419
    45
	ULONG (*VC_WriteBytes)(SBYTE*,ULONG);
slouken@419
    46
	struct MDRIVER* drv_nos;
slouken@419
    47
	UWORD* md_device;
slouken@419
    48
	UWORD* md_mixfreq;
slouken@419
    49
	UWORD* md_mode;
slouken@419
    50
	UBYTE* md_musicvolume;
slouken@419
    51
	UBYTE* md_pansep;
slouken@419
    52
	UBYTE* md_reverb;
slouken@419
    53
	UBYTE* md_sndfxvolume;
slouken@419
    54
	UBYTE* md_volume;
slouken@419
    55
} mikmod_loader;
slouken@419
    56
slouken@419
    57
extern mikmod_loader mikmod;
slouken@419
    58
slouken@470
    59
#endif /* MOD_MUSIC */
slouken@470
    60
slouken@419
    61
extern int Mix_InitMOD();
slouken@419
    62
extern void Mix_QuitMOD();