Page 1 of 1

Multiple music in a single map?

Posted: Sun Dec 09, 2012 5:09 am
by ucreator
How to specify multiple music, either mp3 or ogg, in a single map?

RE: Multiple music in a single map?

Posted: Sun Dec 09, 2012 5:26 am
by Llewellyn
ucreator wrote: How to specify multiple music, either mp3 or ogg, in a single map?
Scripts?

Code: Select all

script 1 OPEN
{
Delay(35*240);
SetMusic("asdf");
Delay(35*240);
SetMusic("*");
restart;
}

RE: Multiple music in a single map?

Posted: Sun Dec 09, 2012 5:40 am
by ucreator
What was the delay for?

RE: Multiple music in a single map?

Posted: Sun Dec 09, 2012 6:14 am
by Llewellyn
ucreator wrote: What was the delay for?
You can't have more than one "music" playing at a time. If you want multiple files to be playing at once you'll have to play one as a looping sound on startup, only OGG and FLAC loops seamlessly I believe.

RE: Multiple music in a single map?

Posted: Sun Dec 09, 2012 9:54 am
by Cruduxy
FLAC and OGG will still need cues (or tags you name it) to know they should loop http://zdoom.org/wiki/Audio_loop and have 256 slot to know it loops.

RE: Multiple music in a single map?

Posted: Sun Dec 09, 2012 10:15 pm
by ucreator
I was trying to tell that after the 1st music, and 2nd one will play and so on. Most of my musics are mp3

RE: Multiple music in a single map?

Posted: Sun Dec 09, 2012 10:39 pm
by darkstar64
ucreator wrote: I was trying to tell that after the 1st music, and 2nd one will play and so on. Most of my musics are mp3
MP3 will most likely be too big of a file size and will increase the sixe of your wad/pk3.
The only thing I can recommend is to use Llewellyn's script and set the delay to match up when the song ends.

RE: Multiple music in a single map?

Posted: Tue Dec 11, 2012 6:39 pm
by -Jes-
Even then, the script delay will not count while paused/in menu, but the music will continue.

Generally, you should merge your music into one file if you want a simple loop, as any other method will invariably have holes in it.
Anything else can be done with linedef script triggers and multiple files.