示例#1
0
void Sound::Play(bool more)
{
    if(m_sound_type=="music")
    {
        BackgroundMusic();
    }
    else
        if(m_sound_type=="sound effect")
        {
            Sound_Effect();
        }
        else
            if(m_sound_type=="engine sound")
            {
                Engine_Sound(more);
            }
}
示例#2
0
void
MusicUpdate (void)
{
  BackgroundMusic ();
  CircuitHum ();
}