summaryrefslogtreecommitdiff
path: root/source/main.c
diff options
context:
space:
mode:
authorIan C <ianc@noddybox.co.uk>2021-08-03 20:26:23 +0000
committerIan C <ianc@noddybox.co.uk>2021-08-03 20:26:23 +0000
commitb7e8b634595445325d10f8fcddcb7d6cdaa8a922 (patch)
tree7ecd54e8539cbe1abd37ffda8d3fcd9eb0ddf258 /source/main.c
parent30c4591b629bb96e9ff99aca24d0e0e51cedbf23 (diff)
First attempt at sound
Diffstat (limited to 'source/main.c')
-rw-r--r--source/main.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/source/main.c b/source/main.c
index 46eccfe..b7d3318 100644
--- a/source/main.c
+++ b/source/main.c
@@ -235,8 +235,16 @@ int main(int argc, char *argv[])
{
Z80 *z80;
int quit = FALSE;
+ float mix[12] = {1.0, 1.0};
gfxInit(GSP_RGB565_OES, GSP_RGB565_OES, FALSE);
+ ndspInit();
+
+ ndspSetOutputMode(NDSP_OUTPUT_MONO);
+ ndspChnSetInterp(0, NDSP_INTERP_NONE);
+ ndspChnSetRate(0, SAMPLE_RATE);
+ ndspChnSetFormat(0, NDSP_FORMAT_MONO_PCM8);
+ ndspChnSetMix(0, mix);
FB_Init();
@@ -352,6 +360,7 @@ int main(int argc, char *argv[])
}
}
+ ndspExit();
gfxExit();
return 0;