Multiple music in a single map?

Discuss all aspects related to modding Zandronum here.
Post Reply
ucreator
 
Posts: 25
Joined: Sun Nov 25, 2012 12:41 am

Multiple music in a single map?

#1

Post by ucreator » Sun Dec 09, 2012 5:09 am

How to specify multiple music, either mp3 or ogg, in a single map?

Llewellyn
Forum Regular
Posts: 578
Joined: Mon Jul 02, 2012 7:12 am

RE: Multiple music in a single map?

#2

Post by Llewellyn » Sun Dec 09, 2012 5:26 am

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;
}
Last edited by Llewellyn on Sun Dec 09, 2012 5:27 am, edited 1 time in total.

ucreator
 
Posts: 25
Joined: Sun Nov 25, 2012 12:41 am

RE: Multiple music in a single map?

#3

Post by ucreator » Sun Dec 09, 2012 5:40 am

What was the delay for?

Llewellyn
Forum Regular
Posts: 578
Joined: Mon Jul 02, 2012 7:12 am

RE: Multiple music in a single map?

#4

Post by Llewellyn » Sun Dec 09, 2012 6:14 am

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.

Cruduxy
Zandrone
Posts: 1059
Joined: Fri Jun 08, 2012 4:24 pm

RE: Multiple music in a single map?

#5

Post by Cruduxy » Sun Dec 09, 2012 9:54 am

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.
[][][][][][][][][][][][][][][]
Nothing to see here
[][][][][][][][][][][][][][][]

ucreator
 
Posts: 25
Joined: Sun Nov 25, 2012 12:41 am

RE: Multiple music in a single map?

#6

Post by ucreator » Sun Dec 09, 2012 10:15 pm

I was trying to tell that after the 1st music, and 2nd one will play and so on. Most of my musics are mp3

darkstar64
Forum Regular
Posts: 264
Joined: Sun Dec 09, 2012 3:48 am
Location: Canada

RE: Multiple music in a single map?

#7

Post by darkstar64 » Sun Dec 09, 2012 10:39 pm

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.
Hypnotoad wrote:
That's a pony? I pegged him for some kind of skunk furry.

User avatar
-Jes-
Frequent Poster Miles card holder
Posts: 975
Joined: Fri Aug 03, 2012 9:55 am
Location: Void Zone

RE: Multiple music in a single map?

#8

Post by -Jes- » Tue Dec 11, 2012 6:39 pm

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.

Post Reply