aboutsummaryrefslogtreecommitdiff
path: root/source/nds/entry.cpp
diff options
context:
space:
mode:
authorNebuleon Fumika2013-01-08 15:08:53 -0500
committerNebuleon Fumika2013-01-08 15:08:53 -0500
commit4f9bd9449725a67dfb28c0e018c9bd33285faa3e (patch)
treeec91c6cd288a80e744a54035e1c7d78eac69be86 /source/nds/entry.cpp
parent12c5afbe60035f52da6ae33e853ea01fe075d06c (diff)
downloadsnes9x2005-4f9bd9449725a67dfb28c0e018c9bd33285faa3e.tar.gz
snes9x2005-4f9bd9449725a67dfb28c0e018c9bd33285faa3e.tar.bz2
snes9x2005-4f9bd9449725a67dfb28c0e018c9bd33285faa3e.zip
Configurable interrupt interval for the sound timer. Right now, only 22050 Hz audio at 2000-microsecond intervals works.
Diffstat (limited to 'source/nds/entry.cpp')
-rw-r--r--source/nds/entry.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/source/nds/entry.cpp b/source/nds/entry.cpp
index f14c917..a666a0b 100644
--- a/source/nds/entry.cpp
+++ b/source/nds/entry.cpp
@@ -538,7 +538,7 @@ int sfc_main (int argc, char **argv)
Settings.SoundBufferSize);
// Start a timer for the sound
initTimer(0 /* timer channel, 0 or 1 */,
- 2000 /* period in microseconds */,
+ INTERRUPT_TIME /* period in microseconds */,
NDSSFCProduceSound /* timer function, void (unsigned int) */,
0 /* programmer-specified argument to ^ */);
runTimer(0 /* timer channel, 0 or 1 */);
@@ -1157,6 +1157,8 @@ void NDSSFCProduceSound (unsigned int unused)
/* All data sent. */
}
+ IsSoundGenerated = FALSE;
+
so.samples_mixed_so_far -= sample_count;
}