2016-01-14 20:33:22 -05:00
|
|
|
//
|
|
|
|
// AudioQueue.h
|
|
|
|
// Clock Signal
|
|
|
|
//
|
|
|
|
// Created by Thomas Harte on 14/01/2016.
|
|
|
|
// Copyright © 2016 Thomas Harte. All rights reserved.
|
|
|
|
//
|
|
|
|
|
|
|
|
#import <Foundation/Foundation.h>
|
|
|
|
|
|
|
|
@interface AudioQueue : NSObject
|
|
|
|
|
2016-06-01 19:04:07 -04:00
|
|
|
- (instancetype)initWithSamplingRate:(Float64)samplingRate;
|
2016-01-18 13:50:19 -06:00
|
|
|
- (void)enqueueAudioBuffer:(const int16_t *)buffer numberOfSamples:(size_t)lengthInSamples;
|
2016-01-14 20:33:22 -05:00
|
|
|
|
2016-06-01 19:04:07 -04:00
|
|
|
@property (nonatomic, readonly) Float64 samplingRate;
|
|
|
|
|
|
|
|
+ (Float64)preferredSamplingRate;
|
|
|
|
|
2016-01-14 20:33:22 -05:00
|
|
|
@end
|