aboutsummaryrefslogtreecommitdiff
path: root/source/nds/ds2_main.c
diff options
context:
space:
mode:
authorNebuleon Fumika2012-12-25 22:44:39 -0500
committerNebuleon Fumika2012-12-26 11:29:51 -0500
commit139c793b584a76acd42d72ec019d2cabab7d3ee7 (patch)
tree447c633439ff9abad0382be1978802536839947c /source/nds/ds2_main.c
parent9c1742f6cb2043d0ed6a61ab6de3bef0aad6dc56 (diff)
downloadsnes9x2005-139c793b584a76acd42d72ec019d2cabab7d3ee7.tar.gz
snes9x2005-139c793b584a76acd42d72ec019d2cabab7d3ee7.tar.bz2
snes9x2005-139c793b584a76acd42d72ec019d2cabab7d3ee7.zip
Smoother sound. Raise the sound sampling frequency to 48000 Hz.
Diffstat (limited to 'source/nds/ds2_main.c')
-rw-r--r--source/nds/ds2_main.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/source/nds/ds2_main.c b/source/nds/ds2_main.c
index 2d73313..7229727 100644
--- a/source/nds/ds2_main.c
+++ b/source/nds/ds2_main.c
@@ -23,6 +23,7 @@
#include "ds2io.h"
#include "ds2_timer.h"
#include "ds2_malloc.h"
+#include "ds2sound.h"
#define BLACK_COLOR RGB15(0, 0, 0)
#define WHITE_COLOR RGB15(31, 31, 31)
@@ -45,9 +46,9 @@ void ddump_mem(unsigned char* addr, unsigned int len)
void ds2_main(void)
{
int err;
-ds2_setCPUclocklevel(13);
+ ds2_setCPUclocklevel(13);
//Initial video and audio and other input and output
- err = ds2io_initb(512, 22050, 0, 0);
+ err = ds2io_initb(DS2_BUFFER_SIZE, SND_SAMPLE_RATE, 0, 0);
if(err) goto _failure;
//Initial file system