Music in the menu
Posted: Tue Dec 23, 2008 6:12 pm
There is music in both the main and the ingame menu now; the only problem is that I have no idea about how to stop playing it when the ingame menu disappears. All I have done is caching the music file and this in UI_Refresh:
It doesn't start when it's running already and the menu_in_sound always disrupted it, so I commented it out. How can I stop the music when the ingame menu is closed?
Code: Select all
if (m_entersound && !menu_music_playing)
{
//trap_S_StartLocalSound( menu_in_sound, CHAN_LOCAL_SOUND );
trap_S_StartLocalSound( menu_music, CHAN_LOCAL );
menu_music_playing = qtrue;
m_entersound = qfalse;
}