33 lines
704 B
C++
33 lines
704 B
C++
/** @file
|
|
* @author Edouard DUPIN
|
|
* @copyright 2011, Edouard DUPIN, all right reserved
|
|
* @license APACHE v2.0 (see license file)
|
|
* @fork from RTAudio
|
|
*/
|
|
|
|
#include <airtaudio/status.h>
|
|
#include <airtaudio/debug.h>
|
|
const char* listValue[] = {
|
|
"ok",
|
|
"overflow",
|
|
"underflow"
|
|
};
|
|
|
|
std::ostream& airtaudio::operator <<(std::ostream& _os, enum airtaudio::status _obj) {
|
|
_os << listValue[_obj];
|
|
return _os;
|
|
}
|
|
|
|
std::ostream& airtaudio::operator <<(std::ostream& _os, const std::vector<enum airtaudio::status>& _obj) {
|
|
_os << std::string("{");
|
|
for (size_t iii=0; iii<_obj.size(); ++iii) {
|
|
if (iii!=0) {
|
|
_os << std::string(";");
|
|
}
|
|
_os << _obj[iii];
|
|
}
|
|
_os << std::string("}");
|
|
return _os;
|
|
}
|
|
|