mirror of
https://github.com/jmarshall23/Hellfire.git
synced 2026-08-12 07:50:53 +02:00
49 lines
1.5 KiB
C++
49 lines
1.5 KiB
C++
//****************************************************************************
|
|
// UiSnd.cpp
|
|
// created 10.20.96
|
|
//****************************************************************************
|
|
|
|
|
|
#include "pch.h"
|
|
|
|
|
|
//****************************************************************************
|
|
//****************************************************************************
|
|
static PLAYSND sgPlaySndFcn;
|
|
|
|
|
|
//****************************************************************************
|
|
//****************************************************************************
|
|
void UiSndPlay(LPCSTR sndfile) {
|
|
if (! sgPlaySndFcn) return;
|
|
sgPlaySndFcn(sndfile);
|
|
}
|
|
|
|
|
|
//****************************************************************************
|
|
//****************************************************************************
|
|
void UiSndSetFcn(PLAYSND sndfcn) {
|
|
sgPlaySndFcn = sndfcn;
|
|
}
|
|
|
|
|
|
//****************************************************************************
|
|
//****************************************************************************
|
|
void UiSndInit(void) {
|
|
sgPlaySndFcn = (PLAYSND) NULL;
|
|
}
|
|
|
|
|
|
//****************************************************************************
|
|
//****************************************************************************
|
|
void UiSndPlayClick(void) {
|
|
UiSndPlay("sfx\\items\\titlemov.wav");
|
|
}
|
|
|
|
|
|
//****************************************************************************
|
|
//****************************************************************************
|
|
void UiSndPlayEnter(void) {
|
|
UiSndPlay("sfx\\items\\titlslct.wav");
|
|
}
|