CMSampleBufferRef current_audio_frame;
AVCaptureDevice *observed_device;
+#if !TARGET_OS_IPHONE && __MAC_OS_X_VERSION_MIN_REQUIRED >= 1070
AVCaptureDeviceTransportControlsPlaybackMode observed_mode;
+#endif
int observed_quit;
} AVFContext;
change:(NSDictionary *)change
context:(void *)context {
if (context == _context) {
+#if !TARGET_OS_IPHONE && __MAC_OS_X_VERSION_MIN_REQUIRED >= 1070
AVCaptureDeviceTransportControlsPlaybackMode mode =
[change[NSKeyValueChangeNewKey] integerValue];
}
_context->observed_mode = mode;
}
+#endif
} else {
[super observeValueForKeyPath: keyPath
ofObject: object