From d8933f0989dcb3892a0b1aaa767adcb646ae748e Mon Sep 17 00:00:00 2001 From: Edouard DUPIN Date: Tue, 27 Jan 2015 23:06:19 +0100 Subject: [PATCH] [DEV] add log --- airtaudio/Api.cpp | 2 ++ airtaudio/Interface.cpp | 3 +++ airtaudio/api/Alsa.cpp | 3 +++ airtaudio/api/Android.cpp | 3 +++ airtaudio/api/Asio.cpp | 3 +++ airtaudio/api/Core.cpp | 2 ++ airtaudio/api/CoreIos.mm | 3 +++ airtaudio/api/Ds.cpp | 3 +++ airtaudio/api/Dummy.cpp | 3 +++ airtaudio/api/Jack.cpp | 3 +++ airtaudio/api/Oss.cpp | 3 +++ airtaudio/api/Pulse.cpp | 3 +++ airtaudio/base.h | 2 +- 13 files changed, 35 insertions(+), 1 deletion(-) diff --git a/airtaudio/Api.cpp b/airtaudio/Api.cpp index ff72619..e07e0cc 100644 --- a/airtaudio/Api.cpp +++ b/airtaudio/Api.cpp @@ -14,6 +14,8 @@ #include #include +#undef __class__ +#define __class__ "api" std::ostream& operator <<(std::ostream& _os, const airtaudio::api::type& _obj){ diff --git a/airtaudio/Interface.cpp b/airtaudio/Interface.cpp index e78ca8d..6a45378 100644 --- a/airtaudio/Interface.cpp +++ b/airtaudio/Interface.cpp @@ -11,6 +11,9 @@ #include #include +#undef __class__ +#define __class__ "Interface" + std::vector airtaudio::Interface::getCompiledApi() { std::vector apis; // The order here will control the order of RtAudio's API search in diff --git a/airtaudio/api/Alsa.cpp b/airtaudio/api/Alsa.cpp index 5db9353..388be4f 100644 --- a/airtaudio/api/Alsa.cpp +++ b/airtaudio/api/Alsa.cpp @@ -15,6 +15,9 @@ #include #include +#undef __class__ +#define __class__ "api::Alsa" + airtaudio::Api* airtaudio::api::Alsa::Create() { return new airtaudio::api::Alsa(); } diff --git a/airtaudio/api/Android.cpp b/airtaudio/api/Android.cpp index d4ca9a3..ee23600 100644 --- a/airtaudio/api/Android.cpp +++ b/airtaudio/api/Android.cpp @@ -12,6 +12,9 @@ #include #include +#undef __class__ +#define __class__ "api::Android" + airtaudio::Api* airtaudio::api::Android::Create() { ATA_INFO("Create Android device ... "); return new airtaudio::api::Android(); diff --git a/airtaudio/api/Asio.cpp b/airtaudio/api/Asio.cpp index 35274ff..c7d2a01 100644 --- a/airtaudio/api/Asio.cpp +++ b/airtaudio/api/Asio.cpp @@ -39,6 +39,9 @@ airtaudio::Api* airtaudio::api::Asio::Create() { #include "asiodrivers.h" #include +#undef __class__ +#define __class__ "api::Asio" + static AsioDrivers drivers; static ASIOCallbacks asioCallbacks; static ASIODriverInfo driverInfo; diff --git a/airtaudio/api/Core.cpp b/airtaudio/api/Core.cpp index c75bb5d..9a45043 100644 --- a/airtaudio/api/Core.cpp +++ b/airtaudio/api/Core.cpp @@ -22,6 +22,8 @@ airtaudio::Api* airtaudio::api::Core::Create() { return new airtaudio::api::Core(); } +#undef __class__ +#define __class__ "api::Core" // The OS X CoreAudio API is designed to use a separate callback // procedure for each of its audio devices. A single RtAudio duplex diff --git a/airtaudio/api/CoreIos.mm b/airtaudio/api/CoreIos.mm index 2570bfb..5a3c760 100644 --- a/airtaudio/api/CoreIos.mm +++ b/airtaudio/api/CoreIos.mm @@ -14,6 +14,9 @@ #include #include +#undef __class__ +#define __class__ "api::CoreIos" + airtaudio::Api* airtaudio::api::CoreIos::Create(void) { ATA_INFO("Create CoreIos device ... "); return new airtaudio::api::CoreIos(); diff --git a/airtaudio/api/Ds.cpp b/airtaudio/api/Ds.cpp index 3b81b0d..5767b3a 100644 --- a/airtaudio/api/Ds.cpp +++ b/airtaudio/api/Ds.cpp @@ -11,6 +11,9 @@ #include #include +#undef __class__ +#define __class__ "api::Ds" + airtaudio::Api* airtaudio::api::Ds::Create() { return new airtaudio::api::Ds(); } diff --git a/airtaudio/api/Dummy.cpp b/airtaudio/api/Dummy.cpp index 4dc015a..2b874e2 100644 --- a/airtaudio/api/Dummy.cpp +++ b/airtaudio/api/Dummy.cpp @@ -10,6 +10,9 @@ #include #include +#undef __class__ +#define __class__ "api::Dummy" + airtaudio::Api* airtaudio::api::Dummy::Create() { return new airtaudio::api::Dummy(); } diff --git a/airtaudio/api/Jack.cpp b/airtaudio/api/Jack.cpp index cc9fea3..44b627a 100644 --- a/airtaudio/api/Jack.cpp +++ b/airtaudio/api/Jack.cpp @@ -15,6 +15,9 @@ #include #include +#undef __class__ +#define __class__ "api::Jack" + airtaudio::Api* airtaudio::api::Jack::Create() { return new airtaudio::api::Jack(); } diff --git a/airtaudio/api/Oss.cpp b/airtaudio/api/Oss.cpp index ec01ad5..22bdd7e 100644 --- a/airtaudio/api/Oss.cpp +++ b/airtaudio/api/Oss.cpp @@ -19,6 +19,9 @@ #include #include +#undef __class__ +#define __class__ "api::Oss" + airtaudio::Api* airtaudio::api::Oss::Create() { return new airtaudio::api::Oss(); } diff --git a/airtaudio/api/Pulse.cpp b/airtaudio/api/Pulse.cpp index 6f47a5d..9ef2e51 100644 --- a/airtaudio/api/Pulse.cpp +++ b/airtaudio/api/Pulse.cpp @@ -20,6 +20,9 @@ #include #include +#undef __class__ +#define __class__ "api::Pulse" + airtaudio::Api* airtaudio::api::Pulse::Create() { return new airtaudio::api::Pulse(); } diff --git a/airtaudio/base.h b/airtaudio/base.h index b095f40..228c799 100644 --- a/airtaudio/base.h +++ b/airtaudio/base.h @@ -185,7 +185,7 @@ namespace airtaudio { * the stream immediately, the client should return a value of two. */ typedef std::function AirTAudioCallback;