Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Suppose you have a timeline "engine" that has an internal clock of some kind. every "tick" of the clock you will check some array or vector that holds your Track objects and see if it contains an object with a startTime of n ticks from the beginning of the timeline. Or Maybe its more efficient to make a Vector of starttimes that exist in the TrackObjs Vector and check that, then if one is found run the TrackObjs vector and get all the audio that needs to be started at that time.</p> <p>Here ticks could be seconds, 10ths, milliseconds, whatever. see <a href="http://as3.casalib.org/docs/" rel="nofollow noreferrer">http://as3.casalib.org/docs/</a> org.casalib.time classes for framebased timekeeping</p> <pre> class Track() { var startTime:int; var trackName:String; var fileName:String; } </pre> <p>For the actual playing of the multiple mixed sounds there are various libs out there that might do most of the heavy lifting for you. </p> <p><a href="http://www.gaiaflashframework.com/wiki/index.php?title=Sound_Groups" rel="nofollow noreferrer">http://www.gaiaflashframework.com/wiki/index.php?title=Sound_Groups</a><br /> This may have some useful code for you, though you may need to decouple it from the Gaia framework. Maybe better:<br /> Matt Przybylski's SoundManager class <a href="http://www.reintroducing.com" rel="nofollow noreferrer">http://www.reintroducing.com</a><br /> Guttershark SoundManager class <a href="http://codeendeavor.com/guttershark" rel="nofollow noreferrer">http://codeendeavor.com/guttershark</a></p> <p>Also these might be of interest for dynamic sound generation:<br /> <a href="http://code.google.com/p/benstucki/" rel="nofollow noreferrer">http://code.google.com/p/benstucki/</a><br /> "Flaudio is a dynamic runtime audio generation and processing library for ActionScript 3"</p> <p><a href="http://code.google.com/p/popforge/" rel="nofollow noreferrer">http://code.google.com/p/popforge/</a><br /> "Popforge AS3 audio library allows you to create a valid flash.media.Sound object with your own samples. This opens up new perspectives for sound design with the current Adobe Flash Player 9. You can create synthesizers, effects and sample-players of any kind. The supplied AudioBuffer class allows you to create endless audio playback. "</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload