Skip to content

Conversation

@DabeDotCom
Copy link

When I upgraded from Mojave to Monterey, I could no longer specify
a particular audio device using the device enumeration hack:

sox -V6 -n -t coreaudio bogus

(They ALL listed my HDMI monitor, not "External Headphones", etc.)

I tracked it down to a simple fix: resetting property_size = sizeof(name)

[N.B. This doesn't begin to address replacing the deprecated AudioHardwareGetProperty APIs]

When I upgraded from Mojave to Monterey, I could no longer specify
a particular audio device using the [device enumeration hack](https://superuser.com/questions/1506208/sox-how-to-specify-audio-input-and-audio-output-devices-on-osx):

```
sox -V6 -n -t coreaudio bogus
```

(They *ALL* listed my HDMI monitor, not "External Headphones", etc.)

I tracked it down to a simple fix: resetting `property_size = sizeof(name)`

[N.B. This doesn't begin to address [replacing the deprecated `AudioHardwareGetProperty` APIs](https://stackoverflow.com/questions/1983984/how-to-get-audio-device-uid-to-pass-into-nssounds-setplaybackdeviceidentifier)]
@xuandu
Copy link

xuandu commented Sep 1, 2022

Hello, how can this Sox be compiled into a static library for use? Thank you very much, because I am not very clear about script compilation; I hope to get help;
I want to compile an available Sox static library or dynamic library on Mac OS; But I don't know how to compile this source code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants