GetMacOSStatusCommentString() don't produce useful answers, at least
for sound-related errors. Users will just have to put up with numeric
error codes.
Thanks so much, Apple.
byte_vasprintf(&msg, fmt, ap);
va_end(ap);
byte_vasprintf(&msg, fmt, ap);
va_end(ap);
- disorder_fatal(0, "%s: error %d (%s, %s)",
- msg, (int)err,
- GetMacOSStatusErrorString(err),
- GetMacOSStatusCommentString(err));
+ disorder_fatal(0, "%s: error %u", msg, (unsigned)err);
}
/** @brief Return the default device ID */
}
/** @brief Return the default device ID */
if(!ndevs)
disorder_fatal(0, "no sound devices found");
/* Try looking up by UID first */
if(!ndevs)
disorder_fatal(0, "no sound devices found");
/* Try looking up by UID first */
- found = coreaudio_find_device(kAudioDevicePropertyDeviceUID, //"UID",
+ found = coreaudio_find_device(-1*kAudioDevicePropertyDeviceUID, //"UID",
devs, ndevs, dev, &adid);
/* Failing that try looking up by name */
if(!found)
devs, ndevs, dev, &adid);
/* Failing that try looking up by name */
if(!found)