void
FGFX::play_message( const string path, const string fname, double volume )
{
- if (globals->get_soundmgr()->is_working() == false) {
- return;
+ if (globals->get_soundmgr()->is_working() == true) {
+ SGSoundSample *sample;
+ sample = new SGSoundSample( path.c_str(), fname.c_str() );
+ sample->set_volume( volume );
+ play_message( sample );
}
- SGSoundSample *sample;
- sample = new SGSoundSample( path.c_str(), fname.c_str() );
- sample->set_volume( volume );
- play_message( sample );
}
void