* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
/** @file lib/coreaudio.c
- * @brief Support for @ref BACKEND_COREAUDIO
+ * @brief Support for Apple Core Audio
*/
#include "common.h"
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 Find a device by some string
* @param selector Selector for property to look for
- * @param description Property description
* @param devs List of device IDs
* @param ndevs Number of device IDs in @p devs
+ * @param dev Desired device name
* @param resultp Where to put device ID
* @return 1 if found, 0 if not found
*/
'?', FALSE, output, sizeof output,
&used);
output[used] = 0;
- info("device %u %s: %s", n, description, (char *)output);
+ disorder_info("device %u %s: %s", n, description, (char *)output);
#endif
if(CFStringCompare(dev, name,
kCFCompareCaseInsensitive|kCFCompareNonliteral)
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)