mirror of
https://github.com/zakk4223/CocoaSplit.git
synced 2026-05-15 14:15:50 -06:00
Layout source uses proper startEncoders call for the underlying audio engine
This commit is contained in:
parent
21273b2428
commit
b69f46ac8a
3 changed files with 3 additions and 1 deletions
|
|
@ -23,6 +23,7 @@
|
|||
|
||||
@interface AudioEngineHack : NSObject
|
||||
-(void)disableAllInputs;
|
||||
-(void)startEncoders;
|
||||
|
||||
@end
|
||||
|
||||
|
|
|
|||
|
|
@ -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"];
|
||||
}
|
||||
|
|
|
|||
|
|
@ -222,6 +222,7 @@ void PixelBufferRelease( void *releaseRefCon, const void *baseAddress )
|
|||
|
||||
NSMutableDictionary *encoderSpec = [self encoderSpec];
|
||||
|
||||
|
||||
_compression_session = NULL;
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue