Created
September 17, 2022 19:24
-
-
Save genevera/a1e5b89e37ec71c146dde31ca8862b2b to your computer and use it in GitHub Desktop.
Mirror of patch to sox for MacOS device name length shortening/truncation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From bf2afa54a7dec731832e487a546966be24ed74ae Mon Sep 17 00:00:00 2001 | |
From: Eric Wong <[email protected]> | |
Date: Thu, 16 Jun 2016 02:38:00 +0000 | |
Subject: coreaudio: fix device name truncation | |
Not tested by me. | |
Thanks to [email protected] on the sox-devel mailing list. | |
ref: | |
http://mid.gmane.org/1465929413.3110479.637612809.34A344C0@webmail.messagingengine.com | |
http://mid.gmane.org/[email protected] | |
--- | |
src/coreaudio.c | 2 ++ | |
1 file changed, 2 insertions(+) | |
diff --git a/src/coreaudio.c b/src/coreaudio.c | |
index f6f20c13..27623922 100644 | |
--- a/src/coreaudio.c | |
+++ b/src/coreaudio.c | |
@@ -152,6 +152,8 @@ static int setup(sox_format_t *ft, int is_input) | |
for (i = 0; i < device_count; i++) | |
{ | |
char name[256]; | |
+ | |
+ property_size = sizeof(name); | |
status = AudioDeviceGetProperty(devices[i],0,false,kAudioDevicePropertyDeviceName,&property_size,&name); | |
lsx_report("Found Audio Device \"%s\"\n",name); | |
-- | |
cgit v1.2.3-24-ge0c7 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment