diff options
Diffstat (limited to 'uisimulator/common/sound.h')
-rw-r--r-- | uisimulator/common/sound.h | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/uisimulator/common/sound.h b/uisimulator/common/sound.h new file mode 100644 index 0000000000..4da5ce9f08 --- /dev/null +++ b/uisimulator/common/sound.h | |||
@@ -0,0 +1,42 @@ | |||
1 | /*************************************************************************** | ||
2 | * __________ __ ___. | ||
3 | * Open \______ \ ____ ____ | | _\_ |__ _______ ___ | ||
4 | * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / | ||
5 | * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < | ||
6 | * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ | ||
7 | * \/ \/ \/ \/ \/ | ||
8 | * | ||
9 | * Copyright (C) 2002 Dave Chapman | ||
10 | * | ||
11 | * sound.h - common sound driver file. | ||
12 | * | ||
13 | * All files in this archive are subject to the GNU General Public License. | ||
14 | * See the file COPYING in the source tree root for full license agreement. | ||
15 | * | ||
16 | * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY | ||
17 | * KIND, either express or implied. | ||
18 | * | ||
19 | ****************************************************************************/ | ||
20 | |||
21 | #ifndef _SOUND_H | ||
22 | #define _SOUND_H | ||
23 | |||
24 | #ifdef LINUX | ||
25 | |||
26 | /* The "sound device type" is simply the file descriptor */ | ||
27 | #define sound_t int | ||
28 | |||
29 | #else | ||
30 | #ifdef WIN32 | ||
31 | #warning "No sound yet in win32" | ||
32 | #else | ||
33 | #warning "No sound in this environment" | ||
34 | #endif | ||
35 | #endif | ||
36 | |||
37 | int init_sound(sound_t* sound); | ||
38 | int config_sound(sound_t* sound, int sound_freq, int channels); | ||
39 | void close_sound(sound_t* sound); | ||
40 | int output_sound(sound_t* sound,const void* buf, int count); | ||
41 | |||
42 | #endif | ||