[chuck-users] minimizing load time for tons of audio (Michael Hammond)

Perry R Cook prc at CS.Princeton.EDU
Mon Mar 29 12:20:13 EDT 2010


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 at lists.cs.princeton.edu
> 
> https://lists.cs.princeton.edu/mailman/listinfo/chuck-users


More information about the chuck-users mailing list