diff options
author | HALX99 <[email protected]> | 2021-05-13 19:05:47 +0800 |
---|---|---|
committer | GitHub <[email protected]> | 2021-05-13 19:05:47 +0800 |
commit | 2516fdee66737b1a04c16a8b88ee3ae09f86cb18 (patch) | |
tree | e83f37a2da387e8abab39117e09225342606b5a2 /alc/backends/coreaudio.cpp | |
parent | 66ebc3dc4ba690c810e973555846eceb659d8d55 (diff) |
Handle tvOS case
Diffstat (limited to 'alc/backends/coreaudio.cpp')
-rw-r--r-- | alc/backends/coreaudio.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/alc/backends/coreaudio.cpp b/alc/backends/coreaudio.cpp index 00e82266..006c3a76 100644 --- a/alc/backends/coreaudio.cpp +++ b/alc/backends/coreaudio.cpp @@ -105,7 +105,7 @@ void CoreAudioPlayback::open(const char *name) /* open the default output unit */ AudioComponentDescription desc{}; desc.componentType = kAudioUnitType_Output; -#if TARGET_OS_IOS +#if TARGET_OS_IOS || TARGET_OS_TV desc.componentSubType = kAudioUnitSubType_RemoteIO; #else desc.componentSubType = kAudioUnitSubType_DefaultOutput; @@ -410,7 +410,7 @@ void CoreAudioCapture::open(const char *name) name}; desc.componentType = kAudioUnitType_Output; -#if TARGET_OS_IOS +#if TARGET_OS_IOS || TARGET_OS_TV desc.componentSubType = kAudioUnitSubType_RemoteIO; #else desc.componentSubType = kAudioUnitSubType_HALOutput; @@ -446,7 +446,7 @@ void CoreAudioCapture::open(const char *name) throw al::backend_exception{al::backend_error::DeviceError, "Could not enable audio unit input property: %u", err}; -#if !TARGET_OS_IOS +#if !TARGET_OS_IOS && !TARGET_OS_TV { // Get the default input device AudioDeviceID inputDevice = kAudioDeviceUnknown; |