forked from sbooth/SFBAudioEngine
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSFBAudioEncoder+Internal.h
More file actions
39 lines (31 loc) · 957 Bytes
/
Copy pathSFBAudioEncoder+Internal.h
File metadata and controls
39 lines (31 loc) · 957 Bytes
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
//
// Copyright (c) 2020-2024 Stephen F. Booth <me@sbooth.org>
// Part of https://github.com/sbooth/SFBAudioEngine
// MIT license
//
#import <os/log.h>
#import "SFBAudioEncoder.h"
NS_ASSUME_NONNULL_BEGIN
extern os_log_t gSFBAudioEncoderLog;
@interface SFBAudioEncoder ()
{
@package
SFBOutputSource *_outputSource;
@protected
AVAudioFormat *_sourceFormat;
AVAudioFormat *_processingFormat;
AVAudioFormat *_outputFormat;
AVAudioFramePosition _estimatedFramesToEncode;
NSDictionary *_settings;
}
/// Returns the encoder name
@property (class, nonatomic, readonly) SFBAudioEncoderName encoderName;
@end
#pragma mark - Subclass Registration
@interface SFBAudioEncoder (SFBAudioEncoderSubclassRegistration)
/// Register a subclass with the default priority (`0`)
+ (void)registerSubclass:(Class)subclass;
/// Register a subclass with the specified priority
+ (void)registerSubclass:(Class)subclass priority:(int)priority;
@end
NS_ASSUME_NONNULL_END