diff options
author | Linus Nielsen Feltzing <linus@haxx.se> | 2004-07-08 10:12:39 +0000 |
---|---|---|
committer | Linus Nielsen Feltzing <linus@haxx.se> | 2004-07-08 10:12:39 +0000 |
commit | 4242a34ad6f569d2a135e272c8beb95af2aea127 (patch) | |
tree | d779ca10bc00d9353adfe63f6365ecf5702ba9d4 /uisimulator/x11/oss_sound.c | |
parent | c685b35611e9be2a761d863de8d7c5124576a12d (diff) |
Patch #961687 by Eric Lassauge, MP3 playback using libmad in the X11 simulator
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4849 a1c6a512-1295-4272-9138-f99709370657
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 @@ #include <stdio.h> #include <fcntl.h> -#include <linux/soundcard.h> +#include <sys/soundcard.h> #include "../common/sound.h" /* We want to use the "real" open in this file */ @@ -39,7 +39,7 @@ int init_sound(sound_t* sound) { } int config_sound(sound_t* sound, int sound_freq, int channels) { - int format=AFMT_U16_LE; + int format=AFMT_S16_NE; int setting=0x000C000D; // 12 fragments size 8kb ? WHAT IS THIS? sound->freq=sound_freq; |