Proper sound for phasers and explosions. Multi-channel audio.

This commit is contained in:
stevenhowes
2021-05-17 20:48:48 +01:00
parent bcc7a72ae1
commit efc2e685e4
9 changed files with 100 additions and 61 deletions
+10 -4
View File
@@ -5,7 +5,7 @@
#include "Sound.h"
#include "Graphics.h"
#define SKIP_INTRO
//#define SKIP_INTRO
//#define SKIP_MISSION1
//#define SKIP_MISSION2
@@ -52,9 +52,10 @@ void exitfunc () {
free(fontbuffer);
free(tilebuffer);
inreg.r[0] = 4;
inreg.r[1] = 0;
_kernel_swi (DataVox_Unset, &inreg, &outreg);
sound_pcm_unset(5);
sound_pcm_unset(6);
sound_pcm_unset(7);
sound_pcm_unset(8);
}
int main(int argc, char *argv[])
@@ -65,6 +66,11 @@ int main(int argc, char *argv[])
atexit(exitfunc);
sound_on();
sound_voices(8);
sound_set_voice(5,"DataVox-Voice");
sound_set_voice(6,"DataVox-Voice");
sound_set_voice(7,"DataVox-Voice");
sound_set_voice(8,"DataVox-Voice");
// Set initial display mode
display_mode(DISPLAY_MODE);