Skip to content

Latest commit

 

History

History
72 lines (55 loc) · 1006 Bytes

drv_sdl.c

File metadata and controls

72 lines (55 loc) · 1006 Bytes
 
Oct 21, 1999
Oct 21, 1999
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
68
69
70
71
/*
Name:
DRV_SDL.C
Description:
Mikmod driver for output using the Simple DirectMedia Layer
*/
#include "mikmod.h"
static BOOL SDRV_IsThere(void)
{
return 1;
}
static BOOL SDRV_Init(void)
{
md_mode |= DMODE_SOFT_MUSIC | DMODE_SOFT_SNDFX;
return(VC_Init());
}
static void SDRV_Exit(void)
{
VC_Exit();
}
static void SDRV_Update(void)
{
/* does nothing, buffers are updated in the background */
}
static BOOL SDRV_Reset(void)
{
return 0;
}
MDRIVER drv_sdl =
{ NULL,
"SDL",
"MikMod Simple DirectMedia Layer driver v1.0",
0,255,
SDRV_IsThere,
VC_SampleLoad,
VC_SampleUnload,
VC_SampleSpace,
VC_SampleLength,
SDRV_Init,
SDRV_Exit,
SDRV_Reset,
VC_SetNumVoices,
VC_PlayStart,
VC_PlayStop,
SDRV_Update,
VC_VoiceSetVolume,
VC_VoiceSetFrequency,
VC_VoiceSetPanning,
VC_VoicePlay,
VC_VoiceStop,
VC_VoiceStopped,
VC_VoiceReleaseSustain,
VC_VoiceGetPosition,
VC_VoiceRealVolume
};