Thanks all for your responses.  Just to clarify, my hope is to make a standalone app that can randomly select among 20-30 sound files to play back 5-8 simultaneously as a single "track."  The hope then is that users can move to different points in the playback of the "track" just as they would in an MP3 player like itunes.  I like the command-line idea, but it seems like jumping to different parts of the audio files might not be possible.  Is that true?<div>
<br></div><div>Perry, I'll look into the chunks idea when I get home.  I like it because it would allow me to keep everything in ChucK.  My only concern is that pausing playback to periodically load new chunks into the buffer would result in stutters.  Does anyone have any experience with this?</div>
<div><br></div><div>Thanks!</div><div><br></div><div>Michael<br><br><div class="gmail_quote">2010/3/30  <span dir="ltr"><<a href="mailto:chuck-users-request@lists.cs.princeton.edu">chuck-users-request@lists.cs.princeton.edu</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Send chuck-users mailing list submissions to<br>
        <a href="mailto:chuck-users@lists.cs.princeton.edu">chuck-users@lists.cs.princeton.edu</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
        <a href="https://lists.cs.princeton.edu/mailman/listinfo/chuck-users" target="_blank">https://lists.cs.princeton.edu/mailman/listinfo/chuck-users</a><br>
or, via email, send a message with subject or body 'help' to<br>
        <a href="mailto:chuck-users-request@lists.cs.princeton.edu">chuck-users-request@lists.cs.princeton.edu</a><br>
<br>
You can reach the person managing the list at<br>
        <a href="mailto:chuck-users-owner@lists.cs.princeton.edu">chuck-users-owner@lists.cs.princeton.edu</a><br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than "Re: Contents of chuck-users digest..."<br>
<br>Today's Topics:<br>
<br>
   1. Re: minimizing load time for tons of audio (Michael       Hammond)<br>
      (Perry R Cook)<br>
   2. Re: minimizing load time for tons of audio (William Nye_COMCAST)<br>
<br><br>---------- Forwarded message ----------<br>From: Perry R Cook <<a href="mailto:prc@CS.Princeton.EDU">prc@CS.Princeton.EDU</a>><br>To: <a href="mailto:chuck-users@lists.cs.princeton.edu">chuck-users@lists.cs.princeton.edu</a><br>
Date: Mon, 29 Mar 2010 12:20:13 -0400 (EDT)<br>Subject: Re: [chuck-users] minimizing load time for tons of audio (Michael Hammond)<br>Michael (and all),<br>
<br>
You should investigate the .chunks option for SndBuf:<br>
<br>
.chunks - ( int, READ/WRITE )<br>
- size of chunk (# of frames) to read on-demand;<br>
0 implies entire file, default;<br>
must be set before reading to take effect.<br>
<br>
// Example:<br>
<br>
SndBuf b => dac;<br>
1024 => b.chunks;<br>
"Beethoven5thSymphony.wav" => b.read;<br>
<br>
while (1) {<br>
    1.0 :: second => now;<br>
}<br>
<br>
PRC<br>
<br>
><br>
>    1. minimizing load time for tons of audio (Michael Hammond)<br>
><br>
>    2. Re: minimizing load time for tons of audio (Robert Poor)<br>
><br>
><br>
><br>
> _______________________________________________<br>
><br>
> chuck-users mailing list<br>
><br>
> <a href="mailto:chuck-users@lists.cs.princeton.edu">chuck-users@lists.cs.princeton.edu</a><br>
><br>
> <a href="https://lists.cs.princeton.edu/mailman/listinfo/chuck-users" target="_blank">https://lists.cs.princeton.edu/mailman/listinfo/chuck-users</a><br>
<br>
<br><br>---------- Forwarded message ----------<br>From: William Nye_COMCAST <<a href="mailto:nye22@comcast.net">nye22@comcast.net</a>><br>To: <a href="mailto:chuck-users@lists.cs.princeton.edu">chuck-users@lists.cs.princeton.edu</a><br>
Date: Mon, 29 Mar 2010 14:07:59 -0700<br>Subject: Re: [chuck-users] minimizing load time for tons of audio<br>The command-line gui-free approach can be done in Windows also,<br>
using DSrender.exe, which "plays" almost any kind of media.<br>
Oops, I've been using that for so long I forgot that it didn't<br>
come with Windows but was instead a sample app from a<br>
book that I read:<br>
 <a href="http://www.microsoft.com/mspress/books/sampchap/6381.aspx" target="_blank">http://www.microsoft.com/mspress/books/sampchap/6381.aspx</a><br>
I don't know how good an idea this is but I can zip up the 164Kb<br>
executable and mail to anyone to try.  -Bill<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
From: Robert Poor <<a href="mailto:rdpoor@gmail.com" target="_blank">rdpoor@gmail.com</a>><br>
Michael:<br>
If you're on a Mac, and If you're comfortable with simple command line<br>
programming, have you considered using the "afplay" command? <...><br>
On 2010Mar29, at 08:26, Michael Hammond wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
i have a quick question for all you audio programmers out there.<br>
so i'm looking for the quickest, cheapest way possible to play large<br>
quantities of audio (preferably wav or aif files). <...><br>
</blockquote></blockquote>
<br>
<br>
<br>_______________________________________________<br>
chuck-users mailing list<br>
<a href="mailto:chuck-users@lists.cs.princeton.edu">chuck-users@lists.cs.princeton.edu</a><br>
<a href="https://lists.cs.princeton.edu/mailman/listinfo/chuck-users" target="_blank">https://lists.cs.princeton.edu/mailman/listinfo/chuck-users</a><br>
<br></blockquote></div><br></div>