2015-04-10 22:06:17 +02:00
|
|
|
/** @file
|
|
|
|
* @author Edouard DUPIN
|
|
|
|
* @copyright 2011, Edouard DUPIN, all right reserved
|
|
|
|
* @license APACHE v2.0 (see license file)
|
|
|
|
* @fork from RTAudio
|
|
|
|
*/
|
|
|
|
|
2015-04-11 17:41:26 +02:00
|
|
|
#if defined(ORCHESTRA_BUILD_DUMMY)
|
2016-10-02 22:06:09 +02:00
|
|
|
#include <audio/orchestra/api/Dummy.hpp>
|
|
|
|
#include <audio/orchestra/debug.hpp>
|
2015-04-10 22:06:17 +02:00
|
|
|
|
2016-07-19 21:43:58 +02:00
|
|
|
ememory::SharedPtr<audio::orchestra::Api> audio::orchestra::api::Dummy::create() {
|
2017-10-21 19:05:21 +02:00
|
|
|
return ememory::SharedPtr<audio::orchestra::api::Dummy>(ETK_NEW(audio::orchestra::api::Dummy));
|
2015-04-10 22:06:17 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
audio::orchestra::api::Dummy::Dummy() {
|
|
|
|
ATA_WARNING("This class provides no functionality.");
|
|
|
|
}
|
|
|
|
|
|
|
|
uint32_t audio::orchestra::api::Dummy::getDeviceCount() {
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
audio::orchestra::DeviceInfo audio::orchestra::api::Dummy::getDeviceInfo(uint32_t _device) {
|
|
|
|
(void)_device;
|
|
|
|
return audio::orchestra::DeviceInfo();
|
|
|
|
}
|
|
|
|
|
|
|
|
enum audio::orchestra::error audio::orchestra::api::Dummy::closeStream() {
|
|
|
|
return audio::orchestra::error_none;
|
|
|
|
}
|
|
|
|
|
|
|
|
enum audio::orchestra::error audio::orchestra::api::Dummy::startStream() {
|
|
|
|
// TODO : Check return ...
|
|
|
|
audio::orchestra::Api::startStream();
|
|
|
|
return audio::orchestra::error_none;
|
|
|
|
}
|
|
|
|
|
|
|
|
enum audio::orchestra::error audio::orchestra::api::Dummy::stopStream() {
|
|
|
|
return audio::orchestra::error_none;
|
|
|
|
}
|
|
|
|
|
|
|
|
enum audio::orchestra::error audio::orchestra::api::Dummy::abortStream() {
|
|
|
|
return audio::orchestra::error_none;
|
|
|
|
}
|
|
|
|
|
2015-07-07 22:39:09 +02:00
|
|
|
bool audio::orchestra::api::Dummy::open(uint32_t _device,
|
|
|
|
audio::orchestra::mode _mode,
|
|
|
|
uint32_t _channels,
|
|
|
|
uint32_t _firstChannel,
|
|
|
|
uint32_t _sampleRate,
|
|
|
|
audio::format _format,
|
|
|
|
uint32_t *_bufferSize,
|
|
|
|
const audio::orchestra::StreamOptions& _options) {
|
2015-04-10 22:06:17 +02:00
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|