I wrote a autosampler for my apps some years ago. The
PortAudioStreamRecorderMBS works pretty well for it.
An autosampler records audio, usually 10-100 recording passes after
sending MIDI to a source.
I have a client who is running Monterey on a M1 machine. My apps are
not M1 but they are 64-bit, on very recent MBS and Xojo versions.
My client is having problems with choppy recordings (he sent me
visuals), meaning that inbetween my ReadFrames() calls the system (or
something) is dropping audio in order to handle more incoming data. (I guess.)
I know audio is a difficult subject, so that's not my question.
However if you'd like to comment on it, please do. Does M1 play into this?
The PortAudioStreamRecorderMBS class, actually the base class, has a
flag kFlagsNeverDropInput. How do you invoke this flag? I don't see
any function that takes a flag as an argument.
See, it seems weird to me that these SuperMan Macs would choke on
recording something. According to the PortAudioStreamRecorderMBS
specs, the buffers are limitless so where is missing data going to?
Even if Xojo has a single thread, etc. if PortAudioMBS starts a
stream, there's PLENTY of room to hold recorded data while my Xojo
app does what it does. My routines works great in everything I've
tested it on since 10.6 to 10.14. They don't drop data. But for my
client it is, and he's not doing anything other than this.
Garth Hjelte
Sampler User
_______________________________________________
mbsplugins@monkeybreadsoftware.info mailing list
Options and unsubscribe here:
https://ml-cgn08.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info