On Saturday 18 October 2003 12:26 pm, Guillaume Laurent wrote: > On Saturday 18 October 2003 10:11, Richard Bown wrote: > > For a start we need to be able to insert partial > > audio events for audio segments that start before current playback > > position and extend through it - so we play partial audio files. > > How was this done prior to the mmapping changes ?
Audio segments were a special case - check out the getSequencerSlice code from sequencemanager.cpp from 0.9.1. Basically an audio segment has a start and end time and points to an audio file through an associated ID. It also contains a start index time (m_audioStartTime) which tells us how far into the audio file the audio segment starts. i.e. our audio file could last for 10 seconds but the audio segments plays a subsection from (say) 2-4seconds. Therefore the m_audioStartTime would be RealTime(2, 0). When we're starting playback (note the "firstFetch" flag which signifies this) we should check all audio segments to see if we're starting from within one. So examine all audio segments before the current playback point and insert adjusted audio events that correlate to the partial audio segments we're playing. R ------------------------------------------------------- This SF.net email sponsored by: Enterprise Linux Forum Conference & Expo The Event For Linux Datacenter Solutions & Strategies in The Enterprise Linux in the Boardroom; in the Front Office; & in the Server Room http://www.enterpriselinuxforum.com _______________________________________________ Rosegarden-devel mailing list [EMAIL PROTECTED] - use the link below to unsubscribe https://lists.sourceforge.net/lists/listinfo/rosegarden-devel
