GNU Radio 3.6.2 C++ API
audio_osx.h File Reference
#include <iostream>
#include <string.h>
#include <boost/detail/endian.hpp>
Include dependency graph for audio_osx.h:

Go to the source code of this file.

Macros

#define CheckErrorAndThrow(err, what, throw_str)
#define CheckError(err, what)
#define GR_PCM_ENDIANNESS   0

Macro Definition Documentation

#define CheckError (   err,
  what 
)
Value:
if (err) { \
OSStatus error = static_cast<OSStatus>(err); \
char err_str[4]; \
strncpy (err_str, (char*)(&err), 4); \
std::cerr << what << std::endl; \
std::cerr << " Error# " << error << " ('" << err_str \
<< "')" << std::endl; \
std::cerr << " " << __FILE__ << ":" << __LINE__ << std::endl; \
fflush (stderr); \
}
#define CheckErrorAndThrow (   err,
  what,
  throw_str 
)
Value:
if (err) { \
OSStatus error = static_cast<OSStatus>(err); \
char err_str[4]; \
strncpy (err_str, (char*)(&err), 4); \
std::cerr << what << std::endl; \
std::cerr << " Error# " << error << " ('" << err_str \
<< "')" << std::endl; \
std::cerr << " " << __FILE__ << ":" << __LINE__ << std::endl; \
fflush (stderr); \
throw std::runtime_error (throw_str); \
}
#define GR_PCM_ENDIANNESS   0