blob: c84263a246b5e932bb30343eb410f4726cd1457f (
plain)
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
40
41
42
43
|
// SDLAudioPassThruCapabilities.m
//
#import "SDLAudioPassThruCapabilities.h"
#import "NSMutableDictionary+Store.h"
#import "SDLRPCParameterNames.h"
NS_ASSUME_NONNULL_BEGIN
@implementation SDLAudioPassThruCapabilities
- (void)setSamplingRate:(SDLSamplingRate)samplingRate {
[self.store sdl_setObject:samplingRate forName:SDLRPCParameterNameSamplingRate];
}
- (SDLSamplingRate)samplingRate {
NSError *error = nil;
return [self.store sdl_enumForName:SDLRPCParameterNameSamplingRate error:&error];
}
- (void)setBitsPerSample:(SDLBitsPerSample)bitsPerSample {
[self.store sdl_setObject:bitsPerSample forName:SDLRPCParameterNameBitsPerSample];
}
- (SDLBitsPerSample)bitsPerSample {
NSError *error = nil;
return [self.store sdl_enumForName:SDLRPCParameterNameBitsPerSample error:&error];
}
- (void)setAudioType:(SDLAudioType)audioType {
[self.store sdl_setObject:audioType forName:SDLRPCParameterNameAudioType];
}
- (SDLAudioType)audioType {
NSError *error = nil;
return [self.store sdl_enumForName:SDLRPCParameterNameAudioType error:&error];
}
@end
NS_ASSUME_NONNULL_END
|