> Am 06.02.2016 um 20:47 schrieb Garth Hjelte <[email protected]>: > > 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."
Sounds right. > This assumes that, if I do ReadFrames() at least once per second, I won't > miss any data. But also, in ReadFrames(): As Xojo timers are not very exact, you may better go and ask every second for up to last three seconds of data. > 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 would make the ring buffer 10 seconds long at least. > Is creating a large ring buffer is always a good thing - is there any limit? Available memory is a 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)? Sounds right. Sincerely Christian -- Read our blog about news on our plugins: http://www.mbsplugins.de/ _______________________________________________ Mbsplugins_monkeybreadsoftware.info mailing list [email protected] https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info
