From a5dbe5a6072732f0a09abc233d7a2eea4c038287 Mon Sep 17 00:00:00 2001 From: Edouard DUPIN Date: Thu, 26 Feb 2015 23:49:26 +0100 Subject: [PATCH] [DEV] start add option --- airtaudio/StreamOptions.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/airtaudio/StreamOptions.h b/airtaudio/StreamOptions.h index 9cacdab..e456ee6 100644 --- a/airtaudio/StreamOptions.h +++ b/airtaudio/StreamOptions.h @@ -9,15 +9,23 @@ #define __AIRTAUDIO_STREAM_OPTION_H__ namespace airtaudio { + + enum timestampMode { + timestampMode_Hardware, //!< enable harware timestamp + timestampMode_trigered, //!< get harware triger time stamp and ingrement with duration + timestampMode_soft, //!< Simulate all timestamp. + }; class StreamOptions { public: airtaudio::Flags flags; //!< A bit-mask of stream flags uint32_t numberOfBuffers; //!< Number of stream buffers. std::string streamName; //!< A stream name (currently used only in Jack). + enum timestampMode mode; //!< mode of timestamping data... // Default constructor. StreamOptions() : flags(), - numberOfBuffers(0){} + numberOfBuffers(0), + mode(timestampMode_Hardware) {} }; };