Volume is shown numerical after a change
[kugel-rb.git] / uisimulator / common / sound.h
blobcb9afcb1877215477b416c4f7bbb8556a289f0ee
1 /***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
9 * Copyright (C) 2002 Dave Chapman
11 * sound.h - common sound driver file.
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.
16 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
17 * KIND, either express or implied.
19 ****************************************************************************/
21 #ifndef _SOUND_H
22 #define _SOUND_H
24 #ifdef LINUX
26 /* The "sound device type" */
28 typedef struct {
29 int fd;
30 int freq;
31 int channels;
32 } sound_t;
34 #else
35 #ifdef WIN32
36 #warning "No sound yet in win32"
37 #else
38 #warning "No sound in this environment"
39 #endif
40 #endif
42 int init_sound(sound_t* sound);
43 int config_sound(sound_t* sound, int sound_freq, int channels);
44 void close_sound(sound_t* sound);
45 int output_sound(sound_t* sound,const void* buf, int count);
47 #endif