https://www.monkeybreadsoftware.net/audio-portaudiostreamrecordermbs-method.shtml#1

Tell me if I have this right: "At 44100 Hz, and 4 bytes per value and 2 
channels, you will need 352800 bytes per second on storage."

This assumes that, if I do ReadFrames() at least once per second, I won't miss 
any data. But also, in ReadFrames():

ReadFrames(mem as memoryblock, SizeInBytes as integer) as integer

If my timer was once per second (slowest possible, not optimum I know, but lets 
just say) I would have to read in SizeInBytes equal to the ring buffer size to 
keep up - otherwise, I'll miss data, correct?

I have a case where the client is using a 96000 sample rate and 64 channels (32 
stereo pairs).

Is creating a large ring buffer is always a good thing - is there any limit?

And a similar but separate question: ReadFrames() reads out of the ring buffer. 
You say "use a big buffer". So if my buffer is REALLY big, and I call 
ReadFrames(m, ReallyBigSizeInBytes), it still only return the data received 
from the audio driver since the last call, and returns as an integer the amount 
of data in bytes (in other words, the ReallyBigBuffer may not be completely 
filled)?

Garth Hjelte
Sampler User

_______________________________________________
Mbsplugins_monkeybreadsoftware.info mailing list
[email protected]
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info

Reply via email to