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:
parent
9b3487b6e0
commit
cb8d873b5b
1 changed files with 4 additions and 0 deletions
|
@ -252,6 +252,8 @@ static void * kDSPRubberbandNodeContext = &kDSPRubberbandNodeContext;
|
||||||
- (void)partialInit {
|
- (void)partialInit {
|
||||||
if(stopping || paused || !ts) return;
|
if(stopping || paused || !ts) return;
|
||||||
|
|
||||||
|
processEntered = YES;
|
||||||
|
|
||||||
RubberBandOptions changed = tslastoptions ^ tsnewoptions;
|
RubberBandOptions changed = tslastoptions ^ tsnewoptions;
|
||||||
|
|
||||||
if(changed) {
|
if(changed) {
|
||||||
|
@ -286,6 +288,8 @@ static void * kDSPRubberbandNodeContext = &kDSPRubberbandNodeContext;
|
||||||
}
|
}
|
||||||
|
|
||||||
tsapplynewoptions = NO;
|
tsapplynewoptions = NO;
|
||||||
|
|
||||||
|
processEntered = NO;
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void)fullShutdown {
|
- (void)fullShutdown {
|
||||||
|
|
Loading…
Reference in a new issue