[DEV] minor log change

This commit is contained in:
Edouard DUPIN 2015-02-04 22:39:05 +01:00
parent af22fafffa
commit 6de9bac0fc
3 changed files with 8 additions and 15 deletions

View File

@ -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

View File

@ -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.
*/

View File

@ -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.
*