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
|
|
|
|
*/
|
|
|
|
|
2015-04-10 22:06:17 +02:00
|
|
|
#include <audio/orchestra/mode.h>
|
|
|
|
#include <audio/orchestra/debug.h>
|
2015-02-09 21:44:32 +01:00
|
|
|
|
2015-04-10 22:06:17 +02: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;
|
|
|
|
}
|