You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
67 lines
1.5 KiB
67 lines
1.5 KiB
/*
|
|
* Copyright (c) 2015 - present Facebook, Inc.
|
|
* All rights reserved.
|
|
*
|
|
* This source code is licensed under the BSD style license found in the
|
|
* LICENSE file in the root directory of this source tree. An additional grant
|
|
* of patent rights can be found in the PATENTS file in the same directory.
|
|
*/
|
|
#import <Foundation/NSObject.h>
|
|
|
|
typedef struct {
|
|
int queue;
|
|
} FBAudioRecordState;
|
|
|
|
@interface FBAudioRecorder : NSObject
|
|
|
|
@property (nonatomic, assign) id delegate;
|
|
@property (nonatomic, assign) FBAudioRecordState *recordState;
|
|
@property (nonatomic, assign) FBAudioRecorder *recorder;
|
|
|
|
@end
|
|
|
|
|
|
@implementation FBAudioRecorder {
|
|
int x;
|
|
}
|
|
|
|
-(int) FBAudioInputCallbackSimple:(FBAudioRecorder *)rec
|
|
{
|
|
FBAudioRecordState *recordState = rec.recordState;
|
|
return recordState->queue;
|
|
}
|
|
|
|
-(int) FBAudioInputCallbackSimpleAliasing:(FBAudioRecorder *)userdata
|
|
{
|
|
FBAudioRecorder *recorder = userdata;
|
|
FBAudioRecordState *recordState = recorder.recordState;
|
|
return recordState->queue;
|
|
}
|
|
|
|
-(int) FBAudioInputCallbackField
|
|
{
|
|
FBAudioRecordState *recordState = _recorder->_recorder.recordState;
|
|
return recordState->queue;
|
|
}
|
|
|
|
-(int) FBAudioInputCallbackChain:(FBAudioRecorder *)rec
|
|
{
|
|
FBAudioRecordState *recordState = rec.recorder.recordState;
|
|
return recordState->queue;
|
|
}
|
|
|
|
-(int) test
|
|
{
|
|
FBAudioRecorder *rec = nil;
|
|
FBAudioRecordState *recordState = rec.recordState;
|
|
return recordState->queue;
|
|
}
|
|
|
|
-(instancetype) init {
|
|
self = [super init];
|
|
self->x = 0;
|
|
return self;
|
|
}
|
|
|
|
@end
|