diff --git a/airtaudio/Interface.cpp b/airtaudio/Interface.cpp index 6a45378..cd26175 100644 --- a/airtaudio/Interface.cpp +++ b/airtaudio/Interface.cpp @@ -30,16 +30,16 @@ void airtaudio::Interface::openRtApi(airtaudio::api::type _api) { delete m_rtapi; m_rtapi = nullptr; for (auto &it :m_apiAvaillable) { - ATA_ERROR("try open " << it.first); + ATA_INFO("try open " << it.first); if (_api == it.first) { - ATA_ERROR(" ==> call it"); + ATA_INFO(" ==> call it"); m_rtapi = it.second(); if (m_rtapi != nullptr) { return; } } } - // TODO : An eror occured ... + // TODO : An error occured ... ATA_ERROR("Error in open API ..."); } @@ -100,10 +100,13 @@ enum airtaudio::errorType airtaudio::Interface::instanciate(airtaudio::api::type return airtaudio::errorNone; } if (_api != airtaudio::api::UNSPECIFIED) { - ATA_ERROR("API specified ..."); + ATA_INFO("API specified : " << _api); // Attempt to open the specified API. openRtApi(_api); if (m_rtapi != nullptr) { + if (m_rtapi->getDeviceCount() != 0) { + ATA_INFO(" ==> api open"); + } return airtaudio::errorNone; } // No compiled support for specified API value. Issue a debug diff --git a/airtaudio/Interface.h b/airtaudio/Interface.h index 3242823..991cf41 100644 --- a/airtaudio/Interface.h +++ b/airtaudio/Interface.h @@ -291,7 +291,7 @@ namespace airtaudio { } /** * @brief On some systems, the sample rate used may be slightly different - * than that specified in the stream parameters. If a stream is not + * than that specified in the stream parameters. If a stream is not * open, an RtError (type = INVALID_USE) will be thrown. * @return Returns actual sample rate in use by the stream. */ diff --git a/airtaudio/base.h b/airtaudio/base.h index 228c799..fd8c4d0 100644 --- a/airtaudio/base.h +++ b/airtaudio/base.h @@ -66,11 +66,6 @@ namespace airtaudio { static const format FLOAT32 = 0x10; // Normalized between plus/minus 1.0. static const format FLOAT64 = 0x20; // Normalized between plus/minus 1.0. - /** - * @brief Debug operator To display the curent element in a Human redeable information - */ - //std::ostream& operator <<(std::ostream& _os, const airtaudio::format& _obj); - /** * @typedef typedef uint64_t streamFlags; * @brief RtAudio stream option flags. @@ -142,11 +137,6 @@ namespace airtaudio { static const streamStatus INPUT_OVERFLOW = 0x1; // Input data was discarded because of an overflow condition at the driver. static const streamStatus OUTPUT_UNDERFLOW = 0x2; // The output buffer ran low, likely causing a gap in the output sound. - /** - * @brief Debug operator To display the curent element in a Human redeable information - */ - //std::ostream& operator <<(std::ostream& _os, const airtaudio::streamStatus& _obj); - /** * @brief RtAudio callback function prototype. *