Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix property_size = sizeof(name) #6

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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