UFO: Alien Invasion
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
ui_sound.h File Reference

Go to the source code of this file.

Functions

void UI_PlaySound (const char *soundFile)
 Plays a ui sound. More...
 

Variables

struct cvar_sui_sounds
 

Function Documentation

void UI_PlaySound ( const char *  soundFile)

Plays a ui sound.

Parameters
soundFileSound file relative to sound/gui

Definition at line 35 of file ui_sound.cpp.

References cvar_s::integer, S_StartLocalSample(), SND_VOLUME_DEFAULT, and va().

Referenced by uiCheckBoxNode::onLeftClick(), uiTabNode::onLeftClick(), uiLocatedNode::onLeftClick(), uiLocatedNode::onMiddleClick(), uiLocatedNode::onRightClick(), UI_DNDDrag(), and UI_DNDDrop().

Variable Documentation

struct cvar_s* ui_sounds

Definition at line 29 of file ui_sound.cpp.

Referenced by UI_Init().