Page 1 of 1

Can ogg's be given loop points?

Posted: Wed Jun 30, 2010 3:56 am
by Cutmanmike
I've spent hours trying to figure this out now, but I can't for the life of me figure out how to add loop points to ogg files, or even if you can at all (or is it just that zdoom can't detect them)?

Basically I have a tune that has a little intro, then gets into the main song. I want to put a loop in it so it loops from the end of the song back to the point AFTER the intro. Is such a thing possible? Is there any alternative format I can use supports loops?

Re: Can ogg's be given loop points?

Posted: Wed Jun 30, 2010 4:42 am
by Akira_98
OGG Vorbis can (Apparently) be given loop points, not sure if ZDoom supports it though. I found a free program that can modify OGG Vorbis
Spoiler:
If ZDoom doesn't support looping OGGs, or the program doesn't work, you could try a Impulse Tracker Module (.it) or Fast Tracker Module (.xm), they support looping.

Re: Can ogg's be given loop points?

Posted: Wed Jun 30, 2010 5:14 am
by edward850
No, OGG doesn't support that kind of looping, infact I don't think any digital audio formats do. (Apparently AIFF does, but thats hardly a good idea, considering its typical file-size. (10 MB:1 Minute))
Akira_98 wrote: you could try a Impulse Tracker Module (.it) or Fast Tracker Module (.xm), they support looping.
Yes, but they aren't exactly digital media formats (they use sounds, but only as individual samples), making it tedious to use in such a scenario.

Re: Can ogg's be given loop points?

Posted: Wed Jun 30, 2010 6:15 am
by Marisa the Magician
Actually, I think there are some kind of additional files for some formats (.pos files for WAVs for example. And for OGG I think they were .sfl or something) that can store markers and stuff that could probably be used for looping.

Re: Can ogg's be given loop points?

Posted: Wed Jun 30, 2010 9:13 am
by Caligari87
But it's not likely that ZDoom would fully support it... I'd say just split the files up and use ACS to switch to the new music when the intro is done playing.

8-)

Re: Can ogg's be given loop points?

Posted: Wed Jun 30, 2010 11:49 am
by Ceeb
Which is utterly screwed up should the player use escape to pause.

Re: Can ogg's be given loop points?

Posted: Wed Jun 30, 2010 3:29 pm
by edward850
The problem is not only finding a digital audio format that supports loop points, but also making sure Fmod supports it (which in most cases, it doesn't). One could get crafty and store the loop data in an external file, or in the extended data of an OGG, but it's utterly useless if Fmod doesn't use it.

Re: Can ogg's be given loop points?

Posted: Wed Jun 30, 2010 3:32 pm
by Enjay
edward850 wrote:I don't think any digital audio formats do.
I remember on at least two occasions someone had put a WAV into a WAD and only wanted it to play once but Zdoom insisted on looping it. It turned out on both occasions that Zdoom was (correctly) reading information in the file that told it to loop.

Here is one of them:

http://forum.zdoom.org/viewtopic.php?f= ... 6&p=365000

Re: Can ogg's be given loop points?

Posted: Wed Jun 30, 2010 3:37 pm
by edward850
.Wav has loop data? I never found any specifications indicating that it does. Nice find. (Not that it would matter in this case, mind you, as wav files aren't exactly filesize efficient for use as music.)

Re: Can ogg's be given loop points?

Posted: Wed Jun 30, 2010 3:46 pm
by Caligari87
http://www.sonicspot.com/guide/wavefiles.html

I've been looking around, and it seems the general consensus is that .wav can do it, .mp3 can't (without cue files of some kind) and .ogg might be able to.

8-)

Re: Can ogg's be given loop points?

Posted: Wed Jun 30, 2010 3:56 pm
by Ceeb
If OGG can, that would be excellent. It's already one of my preferred formats.

Re: Can ogg's be given loop points?

Posted: Wed Jun 30, 2010 6:36 pm
by Cleveland Rock
I've posted my thoughts as a feature suggestion in this thread.