summaryrefslogtreecommitdiffstats
path: root/uisimulator/common
diff options
context:
space:
mode:
authorDave Chapman <dave@dchapman.com>2002-05-15 07:27:48 +0000
committerDave Chapman <dave@dchapman.com>2002-05-15 07:27:48 +0000
commit553c2567f4e21df002f45e6ddc0234999e58ad69 (patch)
treef562bea092ace62458b08361a4d7b9306230c8e2 /uisimulator/common
parentdc6cd7dcb20f455f8c474b585c9bf98e79c9a2d8 (diff)
downloadrockbox-553c2567f4e21df002f45e6ddc0234999e58ad69.tar.gz
rockbox-553c2567f4e21df002f45e6ddc0234999e58ad69.tar.bz2
rockbox-553c2567f4e21df002f45e6ddc0234999e58ad69.zip
added playback simulator if /dev/dsp is unavailable
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@581 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'uisimulator/common')
-rw-r--r--uisimulator/common/sound.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/uisimulator/common/sound.h b/uisimulator/common/sound.h
index 4da5ce9f08..cb9afcb187 100644
--- a/uisimulator/common/sound.h
+++ b/uisimulator/common/sound.h
@@ -23,8 +23,13 @@
#ifdef LINUX
-/* The "sound device type" is simply the file descriptor */
-#define sound_t int
+/* The "sound device type" */
+
+typedef struct {
+ int fd;
+ int freq;
+ int channels;
+} sound_t;
#else
#ifdef WIN32