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
|
|
|
|
*/
|
2016-02-02 21:18:54 +01:00
|
|
|
#pragma once
|
2015-04-10 22:06:17 +02:00
|
|
|
|
|
|
|
namespace audio {
|
|
|
|
namespace orchestra {
|
|
|
|
/**
|
|
|
|
* @brief The structure for specifying input or ouput stream parameters.
|
|
|
|
*/
|
|
|
|
class StreamParameters {
|
|
|
|
public:
|
|
|
|
int32_t deviceId; //!< Device index (-1 to getDeviceCount() - 1).
|
2017-08-28 00:08:41 +02:00
|
|
|
etk::String deviceName; //!< name of the device (if deviceId==-1 this must not be == "", and the oposite ...)
|
2015-04-10 22:06:17 +02:00
|
|
|
uint32_t nChannels; //!< Number of channels.
|
|
|
|
uint32_t firstChannel; //!< First channel index on device (default = 0).
|
|
|
|
// Default constructor.
|
|
|
|
StreamParameters() :
|
|
|
|
deviceId(-1),
|
|
|
|
nChannels(0),
|
|
|
|
firstChannel(0) {
|
|
|
|
|
|
|
|
}
|
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|