aboutsummaryrefslogtreecommitdiff
path: root/source/soundux.h
diff options
context:
space:
mode:
authorNebuleon Fumika2013-01-11 18:58:07 -0500
committerNebuleon Fumika2013-01-11 19:22:59 -0500
commit7896e83aa9a3da428d3a56423a5c613782d1ac18 (patch)
treec56b9edbb67888950c76644ac0c2a5431228a62a /source/soundux.h
parent0028091d0f98f92a709dd2caa951e61ae28e5e34 (diff)
downloadsnesemu-7896e83aa9a3da428d3a56423a5c613782d1ac18.tar.gz
snesemu-7896e83aa9a3da428d3a56423a5c613782d1ac18.tar.bz2
snesemu-7896e83aa9a3da428d3a56423a5c613782d1ac18.zip
Stop constantly testing for 16-bit and stereo in sound handlers. Define FOREVER_16_BIT_SOUND and FOREVER_STEREO and use them throughout the code.
This is essentially commit 6b36e79013d4c9273a96a9783a2bccdb516f174a, but for sound instead of graphics.
Diffstat (limited to 'source/soundux.h')
-rw-r--r--source/soundux.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/soundux.h b/source/soundux.h
index 9892dcf..fe96f73 100644
--- a/source/soundux.h
+++ b/source/soundux.h
@@ -124,8 +124,12 @@ typedef struct {
int buffer_size;
int noise_gen;
bool8 mute_sound;
+#ifndef FOREVER_STEREO
int stereo;
+#endif
+#ifndef FOREVER_16_BIT_SOUND
bool8 sixteen_bit;
+#endif
bool8 encoded;
#ifdef __sun
int last_eof;