Re: [tsc-devel] Turning off the Music for the SFML Port...

Quintus | Thu, 29 Oct 2015 07:57:52 UTC

datahead <…r@f…> writes:
> What is the best way to turn it off in the SFML port given that the
> menus are all deactivated.

Comment this code out:

https://github.com/Secretchronicles/TSC/blob/2d6db27aba8df8c17ead46424d912e0c46c06754/tsc/src/scenes/menu_scene.cpp#L44-L46

    m_titlemusic.openFromFile(gp_app->Get_ResourceManager().Get_Game_Music(TITLE_MUSIC).native());
    m_titlemusic.setLoop(true);
    m_titlemusic.play();

This currently instanciates the only sf::Music object we have and that
plays all the time. It is a debugging statement anyway, because the
music system is not ported over yet.

Vale,
Quintus

-- 
#!/sbin/quintus
Blog: http://www.guelkerdev.de

GnuPG key: F1D8799FBCC8BC4F