Re: [chuck-users] chuck-users Digest, Vol 56, Issue 18
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?
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?
Thanks!
Michael
2010/3/30
Send chuck-users mailing list submissions to chuck-users@lists.cs.princeton.edu
To subscribe or unsubscribe via the World Wide Web, visit https://lists.cs.princeton.edu/mailman/listinfo/chuck-users or, via email, send a message with subject or body 'help' to chuck-users-request@lists.cs.princeton.edu
You can reach the person managing the list at chuck-users-owner@lists.cs.princeton.edu
When replying, please edit your Subject line so it is more specific than "Re: Contents of chuck-users digest..."
Today's Topics:
1. Re: minimizing load time for tons of audio (Michael Hammond) (Perry R Cook) 2. Re: minimizing load time for tons of audio (William Nye_COMCAST)
---------- Forwarded message ---------- From: Perry R Cook
To: chuck-users@lists.cs.princeton.edu Date: Mon, 29 Mar 2010 12:20:13 -0400 (EDT) Subject: Re: [chuck-users] minimizing load time for tons of audio (Michael Hammond) Michael (and all), You should investigate the .chunks option for SndBuf:
.chunks - ( int, READ/WRITE ) - size of chunk (# of frames) to read on-demand; 0 implies entire file, default; must be set before reading to take effect.
// Example:
SndBuf b => dac; 1024 => b.chunks; "Beethoven5thSymphony.wav" => b.read;
while (1) { 1.0 :: second => now; }
PRC
1. minimizing load time for tons of audio (Michael Hammond)
2. Re: minimizing load time for tons of audio (Robert Poor)
_______________________________________________
chuck-users mailing list
chuck-users@lists.cs.princeton.edu
---------- Forwarded message ---------- From: William Nye_COMCAST
To: chuck-users@lists.cs.princeton.edu Date: Mon, 29 Mar 2010 14:07:59 -0700 Subject: Re: [chuck-users] minimizing load time for tons of audio The command-line gui-free approach can be done in Windows also, using DSrender.exe, which "plays" almost any kind of media. Oops, I've been using that for so long I forgot that it didn't come with Windows but was instead a sample app from a book that I read: http://www.microsoft.com/mspress/books/sampchap/6381.aspx I don't know how good an idea this is but I can zip up the 164Kb executable and mail to anyone to try. -Bill From: Robert Poor
Michael: If you're on a Mac, and If you're comfortable with simple command line programming, have you considered using the "afplay" command? <...> On 2010Mar29, at 08:26, Michael Hammond wrote:
i have a quick question for all you audio programmers out there. so i'm looking for the quickest, cheapest way possible to play large quantities of audio (preferably wav or aif files). <...>
_______________________________________________ chuck-users mailing list chuck-users@lists.cs.princeton.edu https://lists.cs.princeton.edu/mailman/listinfo/chuck-users
participants (1)
-
Michael Hammond