Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!know!daemon From: Paul Miller Newsgroups: comp.sys.amiga.programmer Subject: message ports seeing the future? Message-ID: <24436@know.pws.bull.com> Date: 9 May 91 01:02:18 GMT Sender: daemon@pws.bulL.com Lines: 33 I'm having a bit of difficulty with a project I am working on and am wondering if anyone can offer some advice. This deals with a task I've developed which handles playing sequences of samples strung together to may break-free music - it does it's own port allocations and such - you just build up a sequence of sections of the total song (each having it's own sample and number of cycles to play) and tell the task to GO. Additionally you can WAIT on a particular section of the sequence to be played, and have YOUR application signalled. This system originally worked fine, until I added some other features (such as the ability to WAIT a specific number of seconds after a section has played). However, now (and this is untested outside of the application I'm using the module in), when I tell the task to wait on a particular section, my app gets signalled BEFORE the cycles actually complete. This obviously screws up the timing in the program, with things happening on-screen before they're supposed to, and in some cases, where something is supposed to happen within a given interval, the audio will go into an endless loop, cycling the same sample over and over, because I've told it to wait on something that's already been played (I have checks for this - each section has a PLAYED flag which gets set after it's played, but this doesn't keep it from going into the playback loop). Any suggestions to this problem would be appreciated! -- **************************************************************************** * Paul Miller | DISCLAIMER IS BETTER THAN DATCLAIMER * * VIDEOWORKS Computer Applications | ------------------------------------ * * Certified AMIGA Developer | My opinions are mine own, and not * * --------------------------------- | those of those who are not me (um?) * * INTERNET: pmiller@vttcf.cc.vt.edu | - Have a JOLT and a smile! - * * ------------------------------------------------------------------------ * * Origin: MILLIWAYS, The Restaurant at the End of the Universe! (v42) * ****************************************************************************