Skip to content

Commit

Permalink
Remove some debugging output in SourceLayout.
Browse files Browse the repository at this point in the history
Don't use 10.10 specific CMSampleBuffer creation function.
Bump version up to 1.9.8
  • Loading branch information
Zakk authored and Zakk committed Feb 25, 2015
1 parent caff673 commit a4a1237
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 52 deletions.
47 changes: 0 additions & 47 deletions CapturePlugins/CSAVFCapturePlugin/CSAVFCapturePlugin/AVFCapture.m
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,6 @@ -(void) changeAvailableVideoDevices
{
[self setDeviceForUniqueID:self.savedUniqueID];
[self restoreFormatAndFrameRate];

}

}
Expand All @@ -293,52 +292,6 @@ -(void) removeAudioOutput
}


/*
-(void) setupAudioOutput
{
if (!_capture_session)
{
return;
}
if (!_audio_capture_output)
{
_audio_capture_output = [[AVCaptureAudioDataOutput alloc] init];
_audio_capture_output.audioSettings = @{
AVFormatIDKey: [NSNumber numberWithInt:kAudioFormatLinearPCM],
AVLinearPCMBitDepthKey: @32,
AVLinearPCMIsFloatKey: @YES,
AVLinearPCMIsNonInterleaved: @YES,
//AVNumberOfChannelsKey: @2,
};
_audio_capture_queue = dispatch_queue_create("AVFCaptureMuxedAudio", NULL);
[_audio_capture_output setSampleBufferDelegate:self queue:_audio_capture_queue];
}
[_capture_session beginConfiguration];
if ([_capture_session canAddOutput:_audio_capture_output])
{
[_capture_session addOutput:_audio_capture_output];
} else {
NSLog(@"COULDN'T ADD AUDIO OUTPUT");
}
[_capture_session commitConfiguration];
}
*/



Expand Down
5 changes: 4 additions & 1 deletion CocoaSplit/CSAacEncoder.m
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,10 @@ -(void) enqueuePCM:(AudioBufferList *)pcmBuffer atTime:(const AudioTimeStamp *)a
CMBlockBufferCreateWithMemoryBlock(NULL, aacBuffer, buffer_size, kCFAllocatorMalloc, NULL, 0, buffer_size, 0, &bufferRef);


CMAudioSampleBufferCreateReadyWithPacketDescriptions(kCFAllocatorDefault, bufferRef, cmFormat, 1, ptsTime, &packetDesc, &newSampleBuf);
CMAudioSampleBufferCreateWithPacketDescriptions(kCFAllocatorDefault, bufferRef, YES, NULL, NULL, cmFormat, 1, ptsTime, &packetDesc, &newSampleBuf);


//CMAudioSampleBufferCreateReadyWithPacketDescriptions(kCFAllocatorDefault, bufferRef, cmFormat, 1, ptsTime, &packetDesc, &newSampleBuf);

CMSampleBufferCreateCopyWithNewTiming(kCFAllocatorDefault, newSampleBuf, 1, &timeInfo, &timingSampleBuf);
CFRelease(newSampleBuf);
Expand Down
4 changes: 2 additions & 2 deletions CocoaSplit/CocoaSplit-Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>1.9.6</string>
<string>1.9.8</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>1.9.6</string>
<string>1.9.8</string>
<key>LSApplicationCategoryType</key>
<string>public.app-category.video</string>
<key>LSMinimumSystemVersion</key>
Expand Down
2 changes: 0 additions & 2 deletions CocoaSplit/SourceLayout.m
Original file line number Diff line number Diff line change
Expand Up @@ -330,14 +330,12 @@ -(void)renderToSurface:(IOSurfaceRef)ioSurface
if (!_rFbo)
{
glGenFramebuffers(1, &_rFbo);
NSLog(@"GENERATED FBO %d", _rFbo);

}

if (!_fboTexture)
{
glGenTextures(1, &_fboTexture);
NSLog(@"GENERATED TEXTURE %d", _fboTexture);

}

Expand Down

0 comments on commit a4a1237

Please sign in to comment.