-
Notifications
You must be signed in to change notification settings - Fork 325
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
delayed volume changes #679
Comments
This is caused by audio buffering inside pianobar. There’s one thread
decoding audio and applying filters (like volume adjustment) and another
one playing these frames. The default buffer size between them is five
seconds, but you reduce the latency by lowering the setting
buffer_seconds, if you have a fast computer.
|
That makes sense but I am confused as to why this is the first time I am seeing this behavior. I have used pianobar on several machines, and this happens to be the "fastest" I've ever tried it on (intel i7-8700k, 12 cores (hyperthreaded) @ 3.7ghz). Does lowering buffer_seconds have any other side effects such as worse performance during brief internet disconnections? |
For that matter, I'm fairly certain that this was not always the case. I remember using pianobar on this box without this issue some time ago. |
Does lowering buffer_seconds have any other side effects such as worse
performance during brief internet disconnections?
It mostly affects low-end machines that can’t keep up with decoding when
other processes consume a lot of CPU time. In the past this caused
stuttering and weird audio artifacts on these machines.
For that matter, I'm fairly certain that this was not always the case.
I remember using pianobar on this box without this issue some time
ago.
Buffering was introduced by commit
bbbdd99, so you’re right, this behavior
is new.
|
Audio buffering causes volume changes to be delayed. See PromyLOPh/pianobar#679 for more information.
Been a while; setting |
No, it is a bug, so I’ll leave it open. I just don’t know how to solve this right now. |
Subject of the issue
I have a very strange issue where volume changes are extremely delayed (5-10 seconds to take effect).
Your environment
songstart
)Steps to reproduce
Start pianobar, adjust sound with
(
or)
.Expected behaviour
Volume should change immediately.
Actual behaviour
Volume takes several seconds to begin adjusting, and then slowly fades to the correct volume.
Additional notes
Adjusting volume with
alsamixer
is instantaneous.The text was updated successfully, but these errors were encountered: