Skip to content

Commit

Permalink
Downgrade some ERRs to WARNs
Browse files Browse the repository at this point in the history
  • Loading branch information
kcat committed Nov 22, 2021
1 parent 0c99a6b commit 834800c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions alc/backends/alsa.cpp
Expand Up @@ -750,10 +750,10 @@ bool AlsaPlayback::reset()
|| !mDevice->Flags.test(FrequencyRequest))
{
if(snd_pcm_hw_params_set_rate_resample(mPcmHandle, hp.get(), 0) < 0)
ERR("Failed to disable ALSA resampler\n");
WARN("Failed to disable ALSA resampler\n");
}
else if(snd_pcm_hw_params_set_rate_resample(mPcmHandle, hp.get(), 1) < 0)
ERR("Failed to enable ALSA resampler\n");
WARN("Failed to enable ALSA resampler\n");
CHECK(snd_pcm_hw_params_set_rate_near(mPcmHandle, hp.get(), &rate, nullptr));
/* set period time (implicitly constrains period/buffer parameters) */
if((err=snd_pcm_hw_params_set_period_time_near(mPcmHandle, hp.get(), &periodLen, nullptr)) < 0)
Expand Down
2 changes: 1 addition & 1 deletion core/helpers.cpp
Expand Up @@ -508,7 +508,7 @@ void SetRTPriority()
else
WARN("D-Bus not available\n");
#endif
ERR("Could not set elevated priority: %s (%d)\n", std::strerror(err), err);
WARN("Could not set elevated priority: %s (%d)\n", std::strerror(err), err);
}

#endif

0 comments on commit 834800c

Please sign in to comment.