-
Notifications
You must be signed in to change notification settings - Fork 2
/
DMX.H
67 lines (60 loc) · 2.09 KB
/
DMX.H
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
//
// Copyright (C) 2015 Alexey Khokholov (Nuke.YKT)
// Copyright (C) 2017 Alexandre-Xavier Labonté-Lamoureux
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
#ifndef _DMX_H_
#define _DMX_H_
int AL_DetectFM(void);
int MPU_Init(int addr);
int GUS_Init(void);
void GUS_Shutdown(void);
void TSM_Install(int rate);
int TSM_NewService(int(*function)(void), int rate, int unk1, int unk2);
void TSM_DelService(int unk1);
void TSM_Remove(void);
void MUS_PauseSong(int handle);
void MUS_ResumeSong(int handle);
void MUS_SetMasterVolume(int volume);
int MUS_RegisterSong(void *data);
int MUS_UnregisterSong(int handle);
int MUS_QrySongPlaying(int handle);
int MUS_StopSong(int handle);
int MUS_ChainSong(int handle, int next);
int MUS_PlaySong(int handle, int volume);
int SFX_PlayPatch(void *vdata, int pitch, int sep, int vol, int unk1, int unk2);
void SFX_StopPatch(int handle);
int SFX_Playing(int handle);
void SFX_SetOrigin(int handle, int pitch, int sep, int vol);
int GF1_Detect(void);
void GF1_SetMap(void *data, int len);
int SB_Detect(int *port, int *irq, int *dma, int *unk);
void SB_SetCard(int port, int irq, int dma);
int AL_Detect(int *port, int *unk);
void AL_SetCard(int port, void *data);
int MPU_Detect(int *port, int *unk);
void MPU_SetCard(int port);
int DMX_Init(int rate, int maxsng, int mdev, int sdev);
void DMX_DeInit(void);
void WAV_PlayMode(int channels, int samplerate);
int CODEC_Detect(int *a, int *b);
int ENS_Detect(void);
#define AHW_PC_SPEAKER 1
#define AHW_ADLIB 2
#define AHW_AWE32 4
#define AHW_SOUND_BLASTER 8
#define AHW_MPU_401 16
#define AHW_ULTRA_SOUND 32
#define AHW_MEDIA_VISION 64
#define AHW_ENSONIQ 256
#define AHW_CODEC 512
#endif