1// AVFoundation and Core Media names the app's recording and playback import, which
2// arrived in 10.7. 10.6 has none of their classes, so the app never reaches these: it
3// opens recordings in the system's player and says recording needs 10.7.
4#include <CoreFoundation/CoreFoundation.h>
5#include <stddef.h>
6
7const CFStringRef AVFormatIDKey = CFSTR("AVFormatIDKey");
8const CFStringRef AVSampleRateKey = CFSTR("AVSampleRateKey");
9const CFStringRef AVNumberOfChannelsKey = CFSTR("AVNumberOfChannelsKey");
10const CFStringRef AVLinearPCMBitDepthKey = CFSTR("AVLinearPCMBitDepthKey");
11const CFStringRef AVLinearPCMIsFloatKey = CFSTR("AVLinearPCMIsFloatKey");
12const CFStringRef AVLinearPCMIsBigEndianKey = CFSTR("AVLinearPCMIsBigEndianKey");
13const CFStringRef AVLinearPCMIsNonInterleaved = CFSTR("AVLinearPCMIsNonInterleaved");
14const CFStringRef AVMediaTypeAudio = CFSTR("soun");
15const CFStringRef AVMediaTypeVideo = CFSTR("vide");
16const CFStringRef AVCaptureSessionPreset320x240 = CFSTR("AVCaptureSessionPreset320x240");
17
18typedef struct {
19 long long value;
20 int timescale;
21 unsigned flags;
22 long long epoch;
23} CMTime;
24
25void *CMSampleBufferGetImageBuffer(void *sample) { return NULL; }
26void *CMSampleBufferGetDataBuffer(void *sample) { return NULL; }
27size_t CMBlockBufferGetDataLength(void *buffer) { return 0; }
28int CMBlockBufferCopyDataBytes(void *buffer, size_t offset, size_t length, void *destination) {
29 return -1;
30}
31CMTime CMSampleBufferGetPresentationTimeStamp(void *sample) {
32 CMTime invalid = {0, 0, 0, 0};
33 return invalid;
34}