-
|
Hi Dan, Happy weekend! Background: Core Audio (AudioToolbox) provides buffers containing varying numbers of samples, up to the buffer size configured in AudioToolbox. While capturing samples from Core Audio, I detect a change of buffer size and re-declare the univectors I store audio in. Purpose of this post is to check that my approach is sensible and safe (or not) as I sometimes (rarely) get nasty crackling during playback. Version: KFR 6.0.3 avx2 64-bit (clang-15.0.0/macos) +in +ve Declarations: Code run in my callback that captures samples from Core Audio (AudioToolbox): Code run when number of samples changes: Is this a sensible way to handle buffer size changes? Thanks in advance, |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
|
I changed my code to use resize() instead. |
Beta Was this translation helpful? Give feedback.
-
|
. |
Beta Was this translation helpful? Give feedback.
I changed my code to use resize() instead.