Happy linter

Signed-off-by: Viktar Lukashonak <myxabeer@gmail.com>
This commit is contained in:
Viktar Lukashonak 2023-10-31 20:47:56 +03:00
parent e9a66d68b7
commit b9b89cce7e
No known key found for this signature in database
GPG Key ID: 08A413AA87200A6F
1 changed files with 2 additions and 1 deletions

View File

@ -155,7 +155,8 @@ auto waybar::modules::Cava::update() -> void {
downThreadDelay(frame_time_milsec_, suspend_silence_delay_); downThreadDelay(frame_time_milsec_, suspend_silence_delay_);
// Process: execute cava // Process: execute cava
pthread_mutex_lock(&audio_data_.lock); pthread_mutex_lock(&audio_data_.lock);
cava::cava_execute(audio_data_.cava_in, audio_data_.samples_counter, audio_raw_.cava_out, plan_); cava::cava_execute(audio_data_.cava_in, audio_data_.samples_counter, audio_raw_.cava_out,
plan_);
if (audio_data_.samples_counter > 0) audio_data_.samples_counter = 0; if (audio_data_.samples_counter > 0) audio_data_.samples_counter = 0;
pthread_mutex_unlock(&audio_data_.lock); pthread_mutex_unlock(&audio_data_.lock);