From: Vallevand, M. K <Mar...@UN...> - 2000-02-17 21:43:12
|
I've tried this in two places... In my game it didn't work. So, I fixed up the mod test program that comes with the PLIB docs. I just added a simple callback that prints "got here" and changed the loopMusic call. It never "gets here". The same code in my game for samples works. I also fixed up the playSample demo and it "gets here". It was too late last night to debug PLIB, so I thought I'd ask today. Regards. Mark K Vallevand ma...@rs... Outside of a dog, a book is man's best friend. Inside of a dog, its too dark to read. - Groucho > -----Original Message----- > From: Steve Baker [mailto:sjb...@ai...] > Sent: Thursday, February 17, 2000 1:44 PM > To: pli...@li... > Subject: Re: [Plib-devel] SL playMusic() callbacks don't work > > > "Vallevand, Mark K" wrote: > > > > The playMusic() in slScheduler allows a callback to be specified, > > but the callback is never called. Is this a known restriction? > > No - it should work. I looked (briefly) at the code and the > callback is actually passed down to the lower level slPlayer > class. That's the common base class for MOD music and sound > effects - and I *know* the sound effects callbacks work because > I've used them. > > It's possible that this has never been tested though - I probably > just assumed that the base class would handle it - and for some > reason it can't. I can't think of any code that I've written > that didn't simply set the music track to loop indefinitely > until I decide to tell it to stop. > > You have tried this and know it doesn't work or were you > just looking at the sources and wondering when it gets > called? > > If so then you've found a bug and I'll have to go and track > it down because this is important functionality. > > -- > Steve Baker http://web2.airmail.net/sjbaker1 > sjb...@ai... (home) http://www.woodsoup.org/~sbaker > sj...@ht... (work) > > _______________________________________________ > plib-devel mailing list > pli...@li... > http://lists.sourceforge.net/mailman/listinfo/plib-devel > |