Date: Sun, 19 Feb 1995 13:35:13 -0800 From: Roger Jones <roger@LANMINDS.COM> Subject: Re: ? A faster way for puppetsound or sound playfile? >I am calling sounds via puppetsound "MySound.aif" or sound playfile >"MySound.aif". However, becuase of the 2000+ cast members in my movie >Director takes about 0.5 seconds to locate and play the sound. > >I believe that this delay casused because Director is searching for the sound >by it's cast name; "MySound.aif". Since this search methiod is inherantly >slow does anyone have a way to search sounds by cast number?Director has a delay the first time it plays a sound from memory because it must allocate memory to play the sound. The longer the sound the longer the delay. You can preplay the sound by muting a sound channel and playing the sound in the muted channel then unmuting the channel. If you have 2000 sounds this may not help.
puppetSound can be used with TWO integer arguments where the first is the sound channelnum and the second evaluates to a sound's castnum. Channelnum can be 1 to 8 on the mac or 1 to 4 on pc. For example:
puppetsound channelnum,castnum puppetsound 1,2 puppetsound 8, cast "boing"
Sound playfile delays are more likely to be related the seek time of the media where the sound lives. Careful file layout on the disc can minimize the seeks but not eliminate them.