Layout source uses proper startEncoders call for the underlying audio engine

This commit is contained in:
Zakk 2019-05-25 07:42:11 -04:00
parent 21273b2428
commit b69f46ac8a
3 changed files with 3 additions and 1 deletions

View file

@ -23,6 +23,7 @@
@interface AudioEngineHack : NSObject
-(void)disableAllInputs;
-(void)startEncoders;
@end

View file

@ -197,7 +197,7 @@
audioEncoder.sampleRate = asbd->mSampleRate;
audioEncoder.skipCompression = YES;
[audioEncoder setupEncoderBuffer];
[audioEngine setValue:audioEncoder forKey:@"encoder"];
[audioEngine startEncoders];
[capDev setValue:audioEngine forKey:@"audioEngine"];
[audioEncoder setValue:self forKey:@"encodedReceiver"];
}

View file

@ -222,6 +222,7 @@ void PixelBufferRelease( void *releaseRefCon, const void *baseAddress )
NSMutableDictionary *encoderSpec = [self encoderSpec];
_compression_session = NULL;