summaryrefslogtreecommitdiff
path: root/daemon
diff options
context:
space:
mode:
authormarwik15 <marwik15@gmail.com>2022-05-04 13:52:53 +0200
committermarwik15 <marwik15@gmail.com>2022-05-04 14:57:42 +0200
commit41bd771b2c2f8c17275e77c961cafa0c58324cd9 (patch)
tree13d4db60b018728d6810f7c06ec7fdf0caeeb0d5 /daemon
parent2ef406196751a469323ed622312df2e7e7b1834b (diff)
downloadhwd-41bd771b2c2f8c17275e77c961cafa0c58324cd9.zip
hwd-41bd771b2c2f8c17275e77c961cafa0c58324cd9.tar.gz
hwd-41bd771b2c2f8c17275e77c961cafa0c58324cd9.tar.bz2
Fix sine wave generation error
Diffstat (limited to 'daemon')
-rw-r--r--daemon/src/Sinewave.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/daemon/src/Sinewave.cpp b/daemon/src/Sinewave.cpp
index d1ca5ef..9d63d78 100644
--- a/daemon/src/Sinewave.cpp
+++ b/daemon/src/Sinewave.cpp
@@ -50,7 +50,7 @@ double Sinewave::get_phase() const
double Sinewave::get_point() const
{
- const auto time = clock::now() - m_start_time;
+ const std::chrono::duration<double> time = clock::now() - m_start_time;
return m_amplitude * sin(2 * M_PI * m_frequency * time.count() + m_phase);
}