Hard Light Productions Forums

Modding, Mission Design, and Coding => FS2 Open Coding - The Source Code Project (SCP) => Topic started by: origin on November 25, 2009, 10:53:18 pm

Title: request for a StopMusic() function
Post by: origin on November 25, 2009, 10:53:18 pm
A stopMusic() function would be nice to go along with the playMusic() function that is already part of the audio library :)
Title: Re: request for a StopMusic() function
Post by: Aardwolf on November 26, 2009, 02:28:03 pm
This is just a guess, but I'd imagine you might be able to get it to stop by calling playMusic again with an empty string. And if you can't do it, you should be able to do it.  :p

Regardless, there are a lot of half-baked ideas like this in lua.cpp; it's actually kind of embarassing...
Title: Re: request for a StopMusic() function
Post by: origin on November 26, 2009, 03:23:35 pm
unfortunately that does not work, while playmusic command will play music or silence if you will when you leave the mainhall, the mainhall music plays in conjuction with the new music.  So there are 2 tracks playing at the same time.  That will happen even if you go to a new mission.
Title: Re: request for a StopMusic() function
Post by: Colonol Dekker on November 26, 2009, 03:34:36 pm
stopMusic()

Flashjockey?
Title: Re: request for a StopMusic() function
Post by: origin on November 26, 2009, 05:08:07 pm
stopMusic()

Flashjockey?

What does that mean?
Title: Re: request for a StopMusic() function
Post by: Aardwolf on November 26, 2009, 08:45:39 pm
I think it's some sort of reference to those asshole DJ's who like to stop the music / do weird stuff that makes it impossible to actually dance.
Title: Re: request for a StopMusic() function
Post by: Colonol Dekker on November 27, 2009, 02:01:45 am
Although I do agree with you. (I hate idiots who don't mix) I was referring to macromedia/adobe flash actionscript language.