[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [sc-users] Read single channel of external file into buffer



for interleaved formats, i doubt that a probably really small performance improvement will justify all the extra logic needed to add a channel-extraction OSC command. apart from the bits of extra buffer memory, i think it's straight forward to read in all channels and then pick out the ones you need using array indices or Select.ar

best, -sciss-

Am 06.06.2006 um 06:10 schrieb Joshua Parmenter:

I wonder how hard it would be to add an argument to b_allocRead for number of channels and which one to read? nil, nil - read all (what it does now), otherwise - check header for number of channels and read the appropriate values... has anyone else ever constructed OSC messages? Or perhaps a new message? b_allocReadChannel?

I'll take a look at the source, maybe this is possible?

Josh