summaryrefslogtreecommitdiffhomepage
path: root/PCM.cpp
diff options
context:
space:
mode:
authorRoland Reichwein <mail@reichwein.it>2025-01-05 22:32:01 +0100
committerRoland Reichwein <mail@reichwein.it>2025-01-05 22:32:01 +0100
commit03b28f03c38b35bcc1bbd1ec28a7be17affd3d28 (patch)
treeec70d62bb681b34b7afe50d292fd138e8bc0ff49 /PCM.cpp
parent88ab4cec9636a3e7b43906e5e7d0f67ac77eb2d6 (diff)
Automatically access click sound file
Diffstat (limited to 'PCM.cpp')
-rw-r--r--PCM.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/PCM.cpp b/PCM.cpp
index 4388974..c0bc5dc 100644
--- a/PCM.cpp
+++ b/PCM.cpp
@@ -5,7 +5,7 @@ PCM::PCM(Config& config):
m_phase(1000000)
{
// prepare the sample
- std::string data_s = Reichwein::File::getFile("media/click.s16le");
+ std::string data_s = Reichwein::File::getFile(m_config.get_click_data_filename());
m_data.resize(data_s.size() / 2); // src is in bytes
memcpy(m_data.data(), data_s.data(), data_s.size());