Files
Hellfire/Uisrc/UI/UISND.CPP
T
Justin Marshall 7806bb8ef8 Added uisrc.
2026-04-27 10:37:37 -07:00

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");
}