diff options
| author | Vasile Vilvoiu <vasi@vilvoiu.ro> | 2023-05-06 20:40:52 +0300 |
|---|---|---|
| committer | Vasile Vilvoiu <vasi@vilvoiu.ro> | 2023-05-06 20:40:52 +0300 |
| commit | f2f4792f824cd64e679cdc859fb008769541257b (patch) | |
| tree | d2ee924bd8945dbf4112afa365aaa822dfea34bc /src/configuration.hpp | |
| parent | 2ebb152342283a2237bc7ca2dd96baf3cac0d56e (diff) | |
Add support for waiting for input.
Introduce -S/--sleep_for_input command line argument.
Closes #17.
Diffstat (limited to 'src/configuration.hpp')
| -rw-r--r-- | src/configuration.hpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/configuration.hpp b/src/configuration.hpp index dec0e0c..42776ad 100644 --- a/src/configuration.hpp +++ b/src/configuration.hpp @@ -32,6 +32,7 @@ private: DataType datatype_; /* input data type (does not cover complex/real discrimination) */ bool has_complex_input_; /* true if input is complex */ double prescale_factor_; /* value to scale input with before applying other transformations */ + std::size_t sleep_for_input_; /* number of milliseconds to sleep when input is not ready */ std::size_t fft_width_; /* size of FFT window, in values */ std::size_t fft_stride_; /* stride of FFT window, in values */ @@ -110,6 +111,7 @@ public: auto GetDataType() const { return datatype_; } auto HasComplexInput() const { return has_complex_input_; } auto GetPrescaleFactor() const { return prescale_factor_; } + auto GetSleepForInput() const { return sleep_for_input_; } /* FFT getters */ auto GetFFTWidth() const { return fft_width_; } |
