Skip to content
This repository
tree: a25e5f36a6
Fetching contributors…

Cannot retrieve contributors at this time

file 39 lines (27 sloc) 0.817 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
//
// VKAudioQueueConnector.h
// VocalKit
//
// Created by Brian King on 4/29/10.
// Copyright 2010 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>
#include <AudioToolbox/AudioToolbox.h>

#import "VKDecoder.h"


#define kNumberRecordBuffers 3


@interface VKAQRecorder : NSObject {

id<VKDecoder> _decoder;

AudioQueueRef _queue;
AudioQueueBufferRef _buffers[kNumberRecordBuffers];
NSUInteger _currentPacket;
AudioStreamBasicDescription _streamFormat;
BOOL _listening;
}

- (AudioQueueRef) AudioQueue;

- (id) initWithDecorder:(id<VKDecoder>)decoder;
- (void) startListening;
- (void) stopListening;

@property (retain, nonatomic) id<VKDecoder> decoder;
@property (assign, nonatomic) BOOL listening;
@property (assign, nonatomic) NSUInteger currentPacket;

@end
Something went wrong with that request. Please try again.