Castle Paradox Forum Index Castle Paradox

 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 Gamelist   Review List   Song List   All Journals   Site Stats   Search Gamelist   IRC Chat Room

OGG looping question!

 
Post new topic   Reply to topic    Castle Paradox Forum Index -> HELP!
View previous topic :: View next topic  
Author Message
Zinfandel
Guest






PostPosted: Wed May 25, 2011 3:24 pm    Post subject: OGG looping question! Reply with quote

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)

PostPosted: Wed May 25, 2011 3:51 pm    Post subject: Re: OGG looping question! Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
Zinfandel
Guest






PostPosted: Wed May 25, 2011 6:08 pm    Post subject: Reply with quote

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






PostPosted: Wed May 25, 2011 6:10 pm    Post subject: Reply with quote

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)

PostPosted: Wed May 25, 2011 9:34 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
TMC
On the Verge of Insanity




Joined: 05 Apr 2003
Posts: 3240
Location: Matakana

PostPosted: Wed May 25, 2011 11:52 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
Bob the Hamster
OHRRPGCE Developer




Joined: 22 Feb 2003
Posts: 2526
Location: Hamster Republic (Southern California Enclave)

PostPosted: Thu May 26, 2011 7:22 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
TMC
On the Verge of Insanity




Joined: 05 Apr 2003
Posts: 3240
Location: Matakana

PostPosted: Sat May 28, 2011 3:43 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    Castle Paradox Forum Index -> HELP! All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group