UltraGrid
UltraGrid Low-Latency High-Resolution Transmission System
Loading...
Searching...
No Matches
macos.h File Reference
#include <Availability.h>
#include <MacTypes.h>
Include dependency graph for macos.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define kAudioObjectPropertyElementMain   kAudioObjectPropertyElementMaster
 
#define MACOS_VERSION(major, minor)
 

Functions

const char * get_osstatus_str (OSStatus err)
 

Detailed Description

Author
Martin Pulec pulec.nosp@m.@ces.nosp@m.net.c.nosp@m.z

Definition in file macos.h.

Macro Definition Documentation

◆ kAudioObjectPropertyElementMain

#define kAudioObjectPropertyElementMain   kAudioObjectPropertyElementMaster

◆ MACOS_VERSION

#define MACOS_VERSION ( major,
minor )
Value:
((major) * 10000 + (minor) * 100)

Definition at line 46 of file macos.h.

Function Documentation

◆ get_osstatus_str()

const char * get_osstatus_str ( OSStatus err)

Definition at line 106 of file macos.m.

106 {
107 static _Thread_local char buf[128];
108 const char *mapped_err = get_mapped_osstatus_str(err);
109 if (mapped_err != NULL) {
110 snprintf(buf, sizeof buf, "%s", mapped_err);
111 } else if (IS_FCC(err)) {
112 uint32_t fcc_be = htonl(err);
113 snprintf(buf, sizeof buf, "'%.4s'", (char *) &fcc_be);
114 } else {
115 snprintf(buf, sizeof buf, "0x%x", err);
116 }
117 snprintf(buf + strlen(buf), sizeof buf - strlen(buf), " (OSStatus error %d)", err);
118 return buf;
119}
static const char * get_mapped_osstatus_str(OSStatus err)
Definition macos.m:49
#define IS_FCC(val)
Definition macros.h:116

References get_mapped_osstatus_str(), and IS_FCC.

Referenced by audio_ca_get_device_name(), audio_ca_probe(), audio_cap_ca_init(), audio_play_ca_init(), audio_play_ca_reconfigure(), and InputProc().

Here is the call graph for this function: