From 03b28f03c38b35bcc1bbd1ec28a7be17affd3d28 Mon Sep 17 00:00:00 2001 From: Roland Reichwein Date: Sun, 5 Jan 2025 22:32:01 +0100 Subject: Automatically access click sound file --- PCM.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'PCM.cpp') 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()); -- cgit v1.2.3