Sunshine latest
Self-hosted game stream host for Moonlight.
av_audio.h
Go to the documentation of this file.
1
5#pragma once
6
7// platform includes
8#import <AVFoundation/AVFoundation.h>
9
10// lib includes
11#include "third-party/TPCircularBuffer/TPCircularBuffer.h"
12
13#define kBufferLength 4096
14
15@interface AVAudio: NSObject <AVCaptureAudioDataOutputSampleBufferDelegate> {
16@public
17 TPCircularBuffer audioSampleBuffer;
18}
19
20@property (nonatomic, assign) AVCaptureSession *audioCaptureSession;
21@property (nonatomic, assign) AVCaptureConnection *audioConnection;
22@property (nonatomic, assign) NSCondition *samplesArrivedSignal;
23
24+ (NSArray *)microphoneNames;
25+ (AVCaptureDevice *)findMicrophone:(NSString *)name;
26
27- (int)setupMicrophone:(AVCaptureDevice *)device sampleRate:(UInt32)sampleRate frameSize:(UInt32)frameSize channels:(UInt8)channels;
28
29@end
Definition av_audio.h:15