CLIENT/FTE: Use .OGG path for menu music multi-platform

This commit is contained in:
Steam Deck User 2023-03-25 19:35:38 -04:00
parent db3ec15fe7
commit c40c5274c7

View file

@ -1872,15 +1872,15 @@ void() Draw_Menu =
{
// main menu theme iterating
if (menu_initialized == false && in_menu == MENU_MAIN) {
localsound_enhanced("tracks/tensioned_by_the_damned.mp3", CHAN_MUSIC, 1);
menu_sound_length = 490; // have to hard code because soundlength() doesn't like MP3 media it seems..
localsound_enhanced("tracks/tensioned_by_the_damned.ogg", CHAN_MUSIC, 1);
menu_sound_length = 490;
menu_sound_time = 0;
menu_initialized = true;
}
// restart the track if it has ended
if (menu_initialized == true && (menu_sound_time >= menu_sound_length - 1)) {
localsound_enhanced("tracks/tensioned_by_the_damned.mp3", CHAN_MUSIC, 1);
localsound_enhanced("tracks/tensioned_by_the_damned.ogg", CHAN_MUSIC, 1);
menu_sound_time = 0;
}