Pyrogenesis  trunk
Functions
JSI_Sound Namespace Reference

Functions

void StartMusic ()
 
void StopMusic ()
 
void ClearPlaylist ()
 
void AddPlaylistItem (const std::wstring &filename)
 
void StartPlaylist (bool looping)
 
void PlayMusic (const std::wstring &filename, bool looping)
 
void PlayUISound (const std::wstring &filename, bool looping)
 
void PlayAmbientSound (const std::wstring &filename, bool looping)
 
bool MusicPlaying ()
 
void SetMasterGain (float gain)
 
void SetMusicGain (float gain)
 
void SetAmbientGain (float gain)
 
void SetActionGain (float gain)
 
void SetUIGain (float gain)
 
void RegisterScriptFunctions (const ScriptRequest &rq)
 Registers the functions of the JavaScript interface for internationalization and localization into the specified JavaScript context. More...
 

Function Documentation

◆ AddPlaylistItem()

void JSI_Sound::AddPlaylistItem ( const std::wstring &  filename)

◆ ClearPlaylist()

void JSI_Sound::ClearPlaylist ( )

◆ MusicPlaying()

bool JSI_Sound::MusicPlaying ( )

◆ PlayAmbientSound()

void JSI_Sound::PlayAmbientSound ( const std::wstring &  filename,
bool  looping 
)

◆ PlayMusic()

void JSI_Sound::PlayMusic ( const std::wstring &  filename,
bool  looping 
)

◆ PlayUISound()

void JSI_Sound::PlayUISound ( const std::wstring &  filename,
bool  looping 
)

◆ RegisterScriptFunctions()

void JSI_Sound::RegisterScriptFunctions ( const ScriptRequest rq)

Registers the functions of the JavaScript interface for internationalization and localization into the specified JavaScript context.

Parameters
ScriptRequestScript Request where RegisterScriptFunctions() registers the functions.
See also
GuiScriptingInit()

◆ SetActionGain()

void JSI_Sound::SetActionGain ( float  gain)

◆ SetAmbientGain()

void JSI_Sound::SetAmbientGain ( float  gain)

◆ SetMasterGain()

void JSI_Sound::SetMasterGain ( float  gain)

◆ SetMusicGain()

void JSI_Sound::SetMusicGain ( float  gain)

◆ SetUIGain()

void JSI_Sound::SetUIGain ( float  gain)

◆ StartMusic()

void JSI_Sound::StartMusic ( )

◆ StartPlaylist()

void JSI_Sound::StartPlaylist ( bool  looping)

◆ StopMusic()

void JSI_Sound::StopMusic ( )