windows-nt/Source/XPSP1/NT/shell/osshell/ep/snake/sound.c

91 lines
1.3 KiB
C
Raw Normal View History

2020-09-26 03:20:57 -05:00
/******************/
/* SOUND ROUTINES */
/******************/
#define _WINDOWS
#include <windows.h>
#include <port1632.h>
#include "sound.h"
#include "pref.h"
extern PREF Preferences;
/****** I N I T T U N E S ******/
VOID InitTunes(VOID)
{
// OpenSound();
// SetVoiceAccent(1, 120, 128, S_LEGATO, 0);
}
/****** K I L L T U N E ******/
VOID KillTune(VOID)
{
// StopSound();
}
/****** E N D T U N E S ******/
VOID EndTunes(VOID)
{
// KillTune();
// CloseSound();
}
/****** P L A Y T U N E ******/
VOID PlayTune(INT tune)
{
/* if (!Preferences.fSound)
return;
switch (tune)
{
case TUNE_HITHEAD:
SetVoiceNote(1, 10, 4, 1);
break;
case TUNE_WINLEVEL:
SetVoiceNote(1, 24, 16, 1);
SetVoiceNote(1, 36, 16, 1);
break;
case TUNE_WINGAME:
SetVoiceNote(1, 24, 16, 1);
SetVoiceNote(1, 26, 16, 1);
SetVoiceNote(1, 28, 16, 1);
SetVoiceNote(1, 29, 16, 1);
SetVoiceNote(1, 31, 16, 1);
SetVoiceNote(1, 33, 16, 1);
SetVoiceNote(1, 35, 16, 1);
SetVoiceNote(1, 36, 16, 1);
break;
case TUNE_LOSEGAME:
SetVoiceNote(1, 36, 8, 1);
SetVoiceNote(1, 24, 8, 1);
SetVoiceNote(1, 36, 8, 1);
SetVoiceNote(1, 24, 8, 1);
SetVoiceNote(1, 36, 8, 1);
SetVoiceNote(1, 24, 8, 1);
break;
#ifdef DEBUG
default:
Oops("Invalid Tune");
break;
#endif
}
StartSound();
*/
(tune);
}