diff options
Diffstat (limited to 'uisimulator/x11/oss_sound.c')
-rw-r--r-- | uisimulator/x11/oss_sound.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/uisimulator/x11/oss_sound.c b/uisimulator/x11/oss_sound.c index e69c403acd..51d85470e7 100644 --- a/uisimulator/x11/oss_sound.c +++ b/uisimulator/x11/oss_sound.c | |||
@@ -21,7 +21,7 @@ | |||
21 | #include <stdio.h> | 21 | #include <stdio.h> |
22 | #include <fcntl.h> | 22 | #include <fcntl.h> |
23 | 23 | ||
24 | #include <linux/soundcard.h> | 24 | #include <sys/soundcard.h> |
25 | #include "../common/sound.h" | 25 | #include "../common/sound.h" |
26 | 26 | ||
27 | /* We want to use the "real" open in this file */ | 27 | /* We want to use the "real" open in this file */ |
@@ -39,7 +39,7 @@ int init_sound(sound_t* sound) { | |||
39 | } | 39 | } |
40 | 40 | ||
41 | int config_sound(sound_t* sound, int sound_freq, int channels) { | 41 | int config_sound(sound_t* sound, int sound_freq, int channels) { |
42 | int format=AFMT_U16_LE; | 42 | int format=AFMT_S16_NE; |
43 | int setting=0x000C000D; // 12 fragments size 8kb ? WHAT IS THIS? | 43 | int setting=0x000C000D; // 12 fragments size 8kb ? WHAT IS THIS? |
44 | 44 | ||
45 | sound->freq=sound_freq; | 45 | sound->freq=sound_freq; |