audio-orchestra/audio/orchestra/mode.cpp

21 lines
427 B
C++
Raw Normal View History

2015-02-09 21:44:32 +01:00
/** @file
* @author Edouard DUPIN
* @copyright 2011, Edouard DUPIN, all right reserved
* @license APACHE v2.0 (see license file)
* @fork from RTAudio
*/
#include <audio/orchestra/mode.h>
#include <audio/orchestra/debug.h>
2015-02-09 21:44:32 +01:00
int32_t audio::orchestra::modeToIdTable(enum mode _mode) {
2015-02-09 21:44:32 +01:00
switch (_mode) {
case mode_unknow:
case mode_duplex:
case mode_output:
return 0;
case mode_input:
return 1;
}
return 0;
}