forked from quozl/netrek-client-cow
-
Notifications
You must be signed in to change notification settings - Fork 0
/
audio.h
61 lines (43 loc) · 1.28 KB
/
audio.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
/* Portable Sound Library
*
* Copyright 1993 by Kurt Siegl <[email protected]> Permission to use,
* modify, copy and distribute this software without fee is hereby granted as
* long as this notice is left here.
*
*/
#ifndef __SNDLIB_H
#define __SNDLIB_H
/* Background Sound player */
/* Starts the Background Sound player Returns: 0 on succes -1 in case of an
* error */
extern int InitSound(void);
/* Terminate Sound player */
extern void ExitSound(void);
/* Is a sound currently playing? */
extern int SoundPlaying();
/* In WINBASE.H (at least in MS VC++) StartSound and StopSound are
* defined, even though they are supposed to be deleted functions.
* Being the lazy sort, I just edited WINBASE.H to remove the redef
* and incorrect def errors. -SAC 96-Jul-06
*/
#ifdef HAVE_WIN32
/* Play a Soundfile */
extern int myStartSound(char *name);
/* Stop the currently played sound */
extern void myStopSound(void);
#define StartSound myStartSound
#define StopSound myStopSound
#else
/* Play a Soundfile */
extern int StartSound(char *name);
/* Stop the currently played sound */
extern void StopSound(void);
/* Internal audio configurations */
#define SOUNDPLAYER "bgsndplay"
struct shm_sound
{
char name[PATH_MAX];
int play_sound;
};
#endif /* __SNDLIB_H */
#endif