Music loops
Moderator: GZDoom Developers
- Apothem
- Posts: 2070
- Joined: Sat Nov 29, 2003 7:13 pm
- Location: Performing open heart surgery on an ACS compiler.
Music loops
Recently, since I've been messing around with a bit of music for the RPG Engine, I noticed something. There is no way to define wether or not music loops on the title screen or levels. For example, say you want to make a really strong ambience to a level, and only want music to play once around and not loop. you cant do that. When you want to add a simple mp3/wav that you only want to play once on the title screen, it will continuously loop. I believe there should be a way, either via MAPINFO or a different lump, to define if the song is looped, or how many loops the song should have.
- Killo Zapit
- Posts: 292
- Joined: Wed Jul 16, 2003 9:26 pm
- Location: Most likely sleeping.
- Bio Hazard
- Posts: 4019
- Joined: Fri Aug 15, 2003 8:15 pm
- Location: ferret ~/C/ZDL $
- Contact:
Killo Zapit's suggestion works just fine, except if you're using MP3s/OGGs (or even MIDIs, for that matter). I would personally love a way to have a song play only once, and stuff.
I wonder if it's at all possible to add an ACS command that checks to see whether a given song is finished playing or not... then it would be possible to automatically start a different song once the current one is completed. Of course, that's wishful thinking, really.
I wonder if it's at all possible to add an ACS command that checks to see whether a given song is finished playing or not... then it would be possible to automatically start a different song once the current one is completed. Of course, that's wishful thinking, really.
With music, I think Zdoom only registers changes in music - notice how if you idclev to the map you are on the music doesn't restart. Same thing happens if two levels with seamless transition (eg HUB) use the same music. So obviously that would have to be changed before Zdoom could remember how far through a song it was.
What would happen if you played a sound as a song between saves? Would Zdoom remember how far through the sound it was or would it just register this sound has been played and therefore not play it when you loaded a save?
What would happen if you played a sound as a song between saves? Would Zdoom remember how far through the sound it was or would it just register this sound has been played and therefore not play it when you loaded a save?