mirror of
https://github.com/stevenhowes/CTheEscape.git
synced 2026-05-27 00:03:27 +01:00
Proper sound for phasers and explosions. Multi-channel audio.
This commit is contained in:
+10
-4
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user