Music loops

Post a reply

Smilies
:D :) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :wink: :geek: :ugeek: :!: :?: :idea: :arrow: :| :mrgreen: :3: :wub: >:( :blergh:
View more smilies

BBCode is OFF
Smilies are ON

Topic review
   

Expand view Topic review: Music loops

by DoomRater » Sun Oct 23, 2005 1:33 pm

The problem isn't really making something play once then- the problem is getting ZDoom to know that it's playing at the moment and where it's playing it from given a save point or pause.

by Enjay » Sat Oct 22, 2005 4:06 pm

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?

by Xaser » Sat Oct 22, 2005 2:54 pm

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.

by Bio Hazard » Tue Oct 18, 2005 12:44 pm

Not if the camera is moving, and why not just ThingSound() on the camera itself?

by jallamann » Tue Oct 18, 2005 7:32 am

If it's a TITLEMAP, would it not be possible to place a sound object at the same coordinates as the camera and play the sound only once?

by Enjay » Tue Oct 18, 2005 7:18 am

But for people with limited/ no mod programming knowledge that's not easy (which is where the "no easy... solution" part of what I said comes in). But yes, that is a possibility.

by Killo Zapit » Mon Oct 17, 2005 10:22 pm

You can make non-looping mods pretty easily (C?? effect and B?? effect), and you could just import a wave as an instrument and play it once if you want.

by Xaser » Mon Oct 17, 2005 7:54 pm

I would certainly use it if I had the chance. This has been bothering me for a while as well. :P

by Apothem » Sat Oct 15, 2005 5:42 pm

Enjay wrote:Yeah, it's been asked for before. At present, there is no easy or satisfactory solution.
Hence, why I asked it again :P I think there's got to be an easy way to implement such a feature, I'm just curious as to how many people would find such a feature useful?

by Enjay » Sat Oct 15, 2005 9:53 am

Yeah, it's been asked for before. At present, there is no easy or satisfactory solution.

Music loops

by Apothem » Sat Oct 15, 2005 9:28 am

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.

Top