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