Closed gardk closed 6 months ago
this might be intended behavior, not the key controls, those should work (if the sleep timer is not configured).
When the source is paused, there is no data coming in, i would have to add a function to reset the buffer to zero after some time without new input data. I think i already have it in the fifo input.
Yeah, the bars freezing does make sense actually, but it would be nice to have them reset to zero after some time :)
was finally able to reproduce. The issue is that the main thread is waiting for the audio to terminate, but the on_process callback is not being fired. Need to think of some solution.
I guess that was what this was for: 0d773076063dbd393dc9f7adfe78f9f5ca1dce0d will re-add it make some signal to the thread when terminating the audio.
You can make on_process keep firing by setting PW_KEY_NODE_ALWAYS_PROCESS
, seems to fix this issue completely.
it does! and then the bars also go down when pausing.
I will consider this resolved then, thanks @gardk for the contribution!
Describe the bug
Title.
Found this cause I wanted cava to only visualize my music and not all desktop sounds :)
I've found that resizing the window causes the bars to actually reset, unless you pressed Q before doing so.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Input should not be ignored and bars should return to zero.
Screenshots
This picture is from when the music is paused
Desktop:
Terminal emulator Tested in kitty 0.33.1 and alacritty 0.13.2