Author Topic: request for a StopMusic() function  (Read 1720 times)

0 Members and 1 Guest are viewing this topic.

Offline origin

  • 27
request for a StopMusic() function
A stopMusic() function would be nice to go along with the playMusic() function that is already part of the audio library :)

 

Offline Aardwolf

  • 211
  • Posts: 16,384
Re: request for a StopMusic() function
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...

 

Offline origin

  • 27
Re: request for a StopMusic() function
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.

 

Offline Colonol Dekker

  • HLP is my mistress
  • 213
  • Aken Tigh Dekker- you've probably heard me
    • My old squad sub-domain
Re: request for a StopMusic() function
Campaigns I've added my distinctiveness to-
- Blue Planet: Battle Captains
-Battle of Neptune
-Between the Ashes 2
-Blue planet: Age of Aquarius
-FOTG?
-Inferno R1
-Ribos: The aftermath / -Retreat from Deneb
-Sol: A History
-TBP EACW teaser
-Earth Brakiri war
-TBP Fortune Hunters (I think?)
-TBP Relic
-Trancsend (Possibly?)
-Uncharted Territory
-Vassagos Dirge
-War Machine
(Others lost to the mists of time and no discernible audit trail)

Your friendly Orestes tactical controller.

Secret bomb God.
That one time I got permabanned and got to read who was being bitxhy about me :p....
GO GO DEKKER RANGERSSSS!!!!!!!!!!!!!!!!!
President of the Scooby Doo Model Appreciation Society
The only good Zod is a dead Zod
NEWGROUNDS COMEDY GOLD, UPDATED DAILY
http://badges.steamprofile.com/profile/default/steam/76561198011784807.png

 
 

Offline Aardwolf

  • 211
  • Posts: 16,384
Re: request for a StopMusic() function
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.

  

Offline Colonol Dekker

  • HLP is my mistress
  • 213
  • Aken Tigh Dekker- you've probably heard me
    • My old squad sub-domain
Re: request for a StopMusic() function
Although I do agree with you. (I hate idiots who don't mix) I was referring to macromedia/adobe flash actionscript language.
 
 
Campaigns I've added my distinctiveness to-
- Blue Planet: Battle Captains
-Battle of Neptune
-Between the Ashes 2
-Blue planet: Age of Aquarius
-FOTG?
-Inferno R1
-Ribos: The aftermath / -Retreat from Deneb
-Sol: A History
-TBP EACW teaser
-Earth Brakiri war
-TBP Fortune Hunters (I think?)
-TBP Relic
-Trancsend (Possibly?)
-Uncharted Territory
-Vassagos Dirge
-War Machine
(Others lost to the mists of time and no discernible audit trail)

Your friendly Orestes tactical controller.

Secret bomb God.
That one time I got permabanned and got to read who was being bitxhy about me :p....
GO GO DEKKER RANGERSSSS!!!!!!!!!!!!!!!!!
President of the Scooby Doo Model Appreciation Society
The only good Zod is a dead Zod
NEWGROUNDS COMEDY GOLD, UPDATED DAILY
http://badges.steamprofile.com/profile/default/steam/76561198011784807.png