33dc028c7e
- Add CoreAudio device input capture for mac audio capturing. The code should cover just about everything for capturing mac input device audio. Because of the way mac audio is designed, users may have no choice but to obtain the open source soundflower software to capture their mac's desktop audio. It may be necessary for us to distribute it with the program as well. - Hide event backend - Use win32 events for windows - Allow timed waits for events - Fix a few warnings
17 lines
346 B
C
17 lines
346 B
C
#pragma once
|
|
|
|
static inline bool mac_success(OSStatus stat, const char *action)
|
|
{
|
|
if (stat != noErr) {
|
|
blog(LOG_WARNING, "%s failed: %d", action, (int)stat);
|
|
return false;
|
|
}
|
|
|
|
return true;
|
|
}
|
|
|
|
static inline bool cf_to_cstr(CFStringRef ref, char *buf, size_t size)
|
|
{
|
|
return (bool)CFStringGetCString(ref, buf, size, kCFStringEncodingUTF8);
|
|
}
|