From 88ab4cec9636a3e7b43906e5e7d0f67ac77eb2d6 Mon Sep 17 00:00:00 2001 From: Roland Reichwein Date: Sun, 5 Jan 2025 21:11:32 +0100 Subject: Use snd_pcm_start() in compatible way (PC + PI) --- PCM.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'PCM.cpp') diff --git a/PCM.cpp b/PCM.cpp index 5e90b97..4388974 100644 --- a/PCM.cpp +++ b/PCM.cpp @@ -40,7 +40,8 @@ PCM::PCM(Config& config): if (0 > snd_pcm_start(handle)) { - throw std::runtime_error("PCM could not be started"); + // On raspberry, this results in error. However, seems to generally work without + log_cout << "PCM could not be started" << std::endl; } if (npfd != 1) { -- cgit v1.2.3