View previous topic :: View next topic |
Author |
Message |
Zinfandel Guest
|
Posted: Wed May 25, 2011 3:24 pm Post subject: OGG looping question! |
|
|
If I want an OGG to loop cleanly, do I have to crop the file to the loop start and loop end portions, or can I insert tags in the OGG's metatags to make it loop like in Megazeux or in certain other RPG creation engines? |
|
Back to top |
|
 |
Bob the Hamster OHRRPGCE Developer

Joined: 22 Feb 2003 Posts: 2526 Location: Hamster Republic (Southern California Enclave)
|
Posted: Wed May 25, 2011 3:51 pm Post subject: Re: OGG looping question! |
|
|
Zinfandel wrote: | If I want an OGG to loop cleanly, do I have to crop the file to the loop start and loop end portions, or can I insert tags in the OGG's metatags to make it loop like in Megazeux or in certain other RPG creation engines? |
You need to crop the ogg. I have never heard of looping metatags for ogg files (and if such thing exists, I am sure our music-playing backends wouldn't understand them) |
|
Back to top |
|
 |
Zinfandel Guest
|
Posted: Wed May 25, 2011 6:08 pm Post subject: |
|
|
I figured that might be the case, but I thought I should ask anyway. Such things DO exist and are used in other engines, but if they aren't for use here, that's cool. |
|
Back to top |
|
 |
Zinfandel Guest
|
Posted: Wed May 25, 2011 6:10 pm Post subject: |
|
|
Out of curiosity, is the OGG-handling part of the backend custom-made for OHR, or was it implemented from something else? |
|
Back to top |
|
 |
Bob the Hamster OHRRPGCE Developer

Joined: 22 Feb 2003 Posts: 2526 Location: Hamster Republic (Southern California Enclave)
|
Posted: Wed May 25, 2011 9:34 pm Post subject: |
|
|
Zinfandel wrote: | Out of curiosity, is the OGG-handling part of the backend custom-made for OHR, or was it implemented from something else? |
We have two music backends, music_sdl is the default, and it uses SDL_Mixer for music playback. The other backend is music_native, which uses Audierre for music playback. |
|
Back to top |
|
 |
TMC On the Verge of Insanity
Joined: 05 Apr 2003 Posts: 3240 Location: Matakana
|
Posted: Wed May 25, 2011 11:52 pm Post subject: |
|
|
Music looping is almost always program-specific rather than actually part of an audio playback library. If we ditched the horrible SDL_mixer library, we could add (in theory, could be time consuming) music loop points as well. I think it would be possible with Audiere, since it exposes a very low level interface. But Audiere isn't that great (it doesn't work for me on Linux), we need to find some other alternatives.
Eg: implementation of OGG looping in ZDoom. _________________ "It is so great it is insanely great." |
|
Back to top |
|
 |
Bob the Hamster OHRRPGCE Developer

Joined: 22 Feb 2003 Posts: 2526 Location: Hamster Republic (Southern California Enclave)
|
Posted: Thu May 26, 2011 7:22 am Post subject: |
|
|
Proposal: music_zdoom backend! (requires a zdoom instance to be running at the same time as the OHR)
No, just kidding. that would be silly :) |
|
Back to top |
|
 |
TMC On the Verge of Insanity
Joined: 05 Apr 2003 Posts: 3240 Location: Matakana
|
Posted: Sat May 28, 2011 3:43 am Post subject: |
|
|
You might be joking, but borrowing audio code from a project such a ZDoom is actually an excellent idea. Just look at ZDoom's vast range of supported audio formats: http://zdoom.org/wiki/Music_format. Unfortunately they use FMOD, which is closed source and only available with a GPL-incompatible non-commercial license (it doesn't mean that we couldn't have an FMOD backend, it just means we couldn't use it for releases ... so, pointless). But their OPL emulation and other code might be useful. Based on MAME no doubt, but there's probably value added. _________________ "It is so great it is insanely great." |
|
Back to top |
|
 |
|