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
|
|
|
|
2016-10-02 22:06:09 +02:00
|
|
|
#include <audio/orchestra/Flags.hpp>
|
2017-09-26 15:57:44 +02:00
|
|
|
#include <etk/String.hpp>
|
2015-04-10 22:06:17 +02:00
|
|
|
|
|
|
|
namespace audio {
|
|
|
|
namespace orchestra {
|
|
|
|
enum timestampMode {
|
|
|
|
timestampMode_Hardware, //!< enable harware timestamp
|
2016-08-22 21:52:31 +02:00
|
|
|
timestampMode_trigered, //!< get harware triger time stamp and increment with duration
|
2015-04-10 22:06:17 +02:00
|
|
|
timestampMode_soft, //!< Simulate all timestamp.
|
|
|
|
};
|
2017-08-28 00:08:41 +02:00
|
|
|
etk::Stream& operator <<(etk::Stream& _os, enum audio::orchestra::timestampMode _obj);
|
2015-04-10 22:06:17 +02:00
|
|
|
|
|
|
|
class StreamOptions {
|
|
|
|
public:
|
|
|
|
audio::orchestra::Flags flags; //!< A bit-mask of stream flags
|
|
|
|
uint32_t numberOfBuffers; //!< Number of stream buffers.
|
2017-08-28 00:08:41 +02:00
|
|
|
etk::String streamName; //!< A stream name (currently used only in Jack).
|
2015-04-10 22:06:17 +02:00
|
|
|
enum timestampMode mode; //!< mode of timestamping data...
|
|
|
|
// Default constructor.
|
|
|
|
StreamOptions() :
|
|
|
|
flags(),
|
|
|
|
numberOfBuffers(0),
|
|
|
|
mode(timestampMode_Hardware) {}
|
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|