audio_osx.h File Reference

#include <iostream>
#include <string.h>
Include dependency graph for audio_osx.h:

Go to the source code of this file.

Defines

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

Define 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
Generated on Tue Dec 28 18:33:22 2010 for GNU Radio 3.3.0 C++ API by  doxygen 1.6.3