Re: [tuxracer-devel] glTron music
Status: Beta
Brought to you by:
jfpatry
From: Steve B. <sjb...@ai...> - 2000-03-31 08:00:26
|
Jasmin Patry wrote: > > ...hence the sources have to be able to make a particular amount > > of sound on-demand. Since MikMod doesn't let you tell it how > > much to generate, that's not likely to work. > > Actually, it does let you tell it how much sound to generate, and that's > what SDL_mixer does. SDL_mixer doesn't use any of libmikmod's supplied > drivers or mixers (it sets up its own libmikmod driver using mikmod's > "virtual channel mixer interface"), and calls mikmod's > VC_WriteBytes( buffer, len ) to fill the audio buffer. It looks fairly > straightforward. OK - you've obviously looked more deeply into this than I have - so I'll bow to your superior knowledge. > > Hence we could call MikMod to create however much it feels like > > - store it in a buffer and just hand 'X' bytes over to SL - keeping > > what's left for next time. Not very elegant - but it ought to be > > do-able. > > No, not elegant at all, and that's not what I had in mind. Excellent - since there is a better way. > It needn't add dependencies to PLIB either, if you include a > stripped-down version of libmikmod in PLIB (e.g., the drivers could be > left out). SDL_mixer does this too. OK - that's certainly possible. Is MikMod pretty stable now - or do new versions still appear regularly? I'd hate for you to hack out a MikMod subset - only to find that you have to keep doing that every few months when MikMod changes. > > I'm biassed though...and right now, I don't have time to do > > either modification. > > Understood (I wasn't asking you to do it, I was offering to look into it > and do it myself). Now that's the kind of thing I like! Let me know if there are changes that you might need in PLIB to make this easier. -- Steve Baker http://web2.airmail.net/sjbaker1 sjb...@ai... (home) http://www.woodsoup.org/~sbaker sj...@ht... (work) |