[DEV] add log

This commit is contained in:
Edouard DUPIN 2015-01-27 23:06:19 +01:00
parent 6aa1746a27
commit d8933f0989
13 changed files with 35 additions and 1 deletions

View File

@ -14,6 +14,8 @@
#include <cstring> #include <cstring>
#include <climits> #include <climits>
#undef __class__
#define __class__ "api"
std::ostream& operator <<(std::ostream& _os, const airtaudio::api::type& _obj){ std::ostream& operator <<(std::ostream& _os, const airtaudio::api::type& _obj){

View File

@ -11,6 +11,9 @@
#include <airtaudio/debug.h> #include <airtaudio/debug.h>
#include <iostream> #include <iostream>
#undef __class__
#define __class__ "Interface"
std::vector<airtaudio::api::type> airtaudio::Interface::getCompiledApi() { std::vector<airtaudio::api::type> airtaudio::Interface::getCompiledApi() {
std::vector<airtaudio::api::type> apis; std::vector<airtaudio::api::type> apis;
// The order here will control the order of RtAudio's API search in // The order here will control the order of RtAudio's API search in

View File

@ -15,6 +15,9 @@
#include <airtaudio/debug.h> #include <airtaudio/debug.h>
#include <limits.h> #include <limits.h>
#undef __class__
#define __class__ "api::Alsa"
airtaudio::Api* airtaudio::api::Alsa::Create() { airtaudio::Api* airtaudio::api::Alsa::Create() {
return new airtaudio::api::Alsa(); return new airtaudio::api::Alsa();
} }

View File

@ -12,6 +12,9 @@
#include <airtaudio/debug.h> #include <airtaudio/debug.h>
#include <limits.h> #include <limits.h>
#undef __class__
#define __class__ "api::Android"
airtaudio::Api* airtaudio::api::Android::Create() { airtaudio::Api* airtaudio::api::Android::Create() {
ATA_INFO("Create Android device ... "); ATA_INFO("Create Android device ... ");
return new airtaudio::api::Android(); return new airtaudio::api::Android();

View File

@ -39,6 +39,9 @@ airtaudio::Api* airtaudio::api::Asio::Create() {
#include "asiodrivers.h" #include "asiodrivers.h"
#include <cmath> #include <cmath>
#undef __class__
#define __class__ "api::Asio"
static AsioDrivers drivers; static AsioDrivers drivers;
static ASIOCallbacks asioCallbacks; static ASIOCallbacks asioCallbacks;
static ASIODriverInfo driverInfo; static ASIODriverInfo driverInfo;

View File

@ -22,6 +22,8 @@ airtaudio::Api* airtaudio::api::Core::Create() {
return new airtaudio::api::Core(); return new airtaudio::api::Core();
} }
#undef __class__
#define __class__ "api::Core"
// The OS X CoreAudio API is designed to use a separate callback // The OS X CoreAudio API is designed to use a separate callback
// procedure for each of its audio devices. A single RtAudio duplex // procedure for each of its audio devices. A single RtAudio duplex

View File

@ -14,6 +14,9 @@
#include <airtaudio/debug.h> #include <airtaudio/debug.h>
#include <limits.h> #include <limits.h>
#undef __class__
#define __class__ "api::CoreIos"
airtaudio::Api* airtaudio::api::CoreIos::Create(void) { airtaudio::Api* airtaudio::api::CoreIos::Create(void) {
ATA_INFO("Create CoreIos device ... "); ATA_INFO("Create CoreIos device ... ");
return new airtaudio::api::CoreIos(); return new airtaudio::api::CoreIos();

View File

@ -11,6 +11,9 @@
#include <airtaudio/Interface.h> #include <airtaudio/Interface.h>
#include <airtaudio/debug.h> #include <airtaudio/debug.h>
#undef __class__
#define __class__ "api::Ds"
airtaudio::Api* airtaudio::api::Ds::Create() { airtaudio::Api* airtaudio::api::Ds::Create() {
return new airtaudio::api::Ds(); return new airtaudio::api::Ds();
} }

View File

@ -10,6 +10,9 @@
#include <airtaudio/api/Dummy.h> #include <airtaudio/api/Dummy.h>
#include <airtaudio/debug.h> #include <airtaudio/debug.h>
#undef __class__
#define __class__ "api::Dummy"
airtaudio::Api* airtaudio::api::Dummy::Create() { airtaudio::Api* airtaudio::api::Dummy::Create() {
return new airtaudio::api::Dummy(); return new airtaudio::api::Dummy();
} }

View File

@ -15,6 +15,9 @@
#include <airtaudio/debug.h> #include <airtaudio/debug.h>
#include <string.h> #include <string.h>
#undef __class__
#define __class__ "api::Jack"
airtaudio::Api* airtaudio::api::Jack::Create() { airtaudio::Api* airtaudio::api::Jack::Create() {
return new airtaudio::api::Jack(); return new airtaudio::api::Jack();
} }

View File

@ -19,6 +19,9 @@
#include <errno.h> #include <errno.h>
#include <math.h> #include <math.h>
#undef __class__
#define __class__ "api::Oss"
airtaudio::Api* airtaudio::api::Oss::Create() { airtaudio::Api* airtaudio::api::Oss::Create() {
return new airtaudio::api::Oss(); return new airtaudio::api::Oss();
} }

View File

@ -20,6 +20,9 @@
#include <pulse/simple.h> #include <pulse/simple.h>
#include <cstdio> #include <cstdio>
#undef __class__
#define __class__ "api::Pulse"
airtaudio::Api* airtaudio::api::Pulse::Create() { airtaudio::Api* airtaudio::api::Pulse::Create() {
return new airtaudio::api::Pulse(); return new airtaudio::api::Pulse();
} }

View File

@ -185,7 +185,7 @@ namespace airtaudio {
* the stream immediately, the client should return a value of two. * the stream immediately, the client should return a value of two.
*/ */
typedef std::function<int32_t (void* _outputBuffer, typedef std::function<int32_t (void* _outputBuffer,
const void* const _inputBuffer, void* _inputBuffer,
uint32_t _nFrames, uint32_t _nFrames,
double _streamTime, double _streamTime,
airtaudio::streamStatus _status)> AirTAudioCallback; airtaudio::streamStatus _status)> AirTAudioCallback;