mirror of
https://github.com/Almamu/linux-wallpaperengine.git
synced 2025-07-13 21:02:34 +08:00
Do not block on calls to pa_mainloop_iterate for sound recorder, should improve #158
Signed-off-by: Alexis Maiquez <almamu@almamu.com>
This commit is contained in:
parent
13e43bada7
commit
37b40ec29f
@ -186,7 +186,7 @@ namespace WallpaperEngine::Audio::Drivers::Recorders
|
||||
|
||||
void CPulseAudioPlaybackRecorder::update ()
|
||||
{
|
||||
pa_mainloop_iterate (this->m_mainloop, 1, nullptr);
|
||||
pa_mainloop_iterate (this->m_mainloop, 0, nullptr);
|
||||
|
||||
// interpolate current values to the destination
|
||||
for (int i = 0; i < 64; i ++) {
|
||||
@ -199,7 +199,7 @@ namespace WallpaperEngine::Audio::Drivers::Recorders
|
||||
this->audio16 [i] = movetowards (this->audio16[i], fft_destination16[i], 0.1f);
|
||||
}
|
||||
|
||||
if (this->fullframeReady == false)
|
||||
if (!this->fullframeReady)
|
||||
return;
|
||||
|
||||
this->fullframeReady = false;
|
||||
|
Loading…
Reference in New Issue
Block a user