Rubberband DSP: Guard non-restart config function

This should be guarded, so that no other thread tries to free the DSP
while it is potentially writing to the Rubber Band instance.

Signed-off-by: Christopher Snowhill <kode54@gmail.com>
This commit is contained in:
Christopher Snowhill 2025-02-11 17:50:07 -08:00
parent ec7d936289
commit 08b991a7c3

View file

@ -252,6 +252,8 @@ static void * kDSPRubberbandNodeContext = &kDSPRubberbandNodeContext;
- (void)partialInit {
if(stopping || paused || !ts) return;
processEntered = YES;
RubberBandOptions changed = tslastoptions ^ tsnewoptions;
if(changed) {
@ -286,6 +288,8 @@ static void * kDSPRubberbandNodeContext = &kDSPRubberbandNodeContext;
}
tsapplynewoptions = NO;
processEntered = NO;
}
- (void)fullShutdown {