deweller / switchaudio-osx

Change the audio source for Mac OS X from the command line.
Other
1.16k stars 88 forks source link

audio_switch.h: fix for pre-10.8 #67

Open barracuda156 opened 3 months ago

barracuda156 commented 3 months ago

<CoreAudio/AudioHardwareBase.h> appears in 10.8. Fallback definitions are from https://github.com/phracker/MacOSX-SDKs/blob/041600eda65c6a668f66cb7d56b7d1da3e8bcc93/MacOSX10.8.sdk/System/Library/Frameworks/CoreAudio.framework/Versions/A/Headers/AudioHardwareDeprecated.h#L52-L53

With this it builds at least on 10.6.

barracuda156 commented 3 months ago

P. S. A half of the fix is in https://github.com/deweller/switchaudio-osx/pull/65 – if that way is preferable, I will drop it from the header. But we still need the other part.