-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
[ao/alsa] Error received from snd_pcm_avail (Regression) #5890
Comments
Thanks for the bisect, that logging is added by me in the following commit from that. Seems like the AO is being queried during pause while something with the actual alsa connection is in a funky state? Possibly the whole AO has been stopped and something's just querying (and now that I added logging for errors we're getting notices of it). |
Also it seems like I haven't completely non-tested this stuff, since it seems like it isn't happening to me at least.
|
Also one thing that is different that in my case the output supports hw pausing, but seemingly yours doesn't?
|
I'm not sure, but I suppose the onboard audio card on my motherboard doesn't have support for hw pausing in alsa?
|
Take a look at #5937 |
Fixes a bug with alsa dmix on Fedora 29. After several minutes, audio suddenly becomes bad and muted. Actually, I don't know what causes this. Probably this is a bug in alsa. In any case, as snd_pcm_status() returns not only 'avail', but also other fields such as tstamp, htstamp, etc, this could be considered a good simplification, as only avail is required for this function.
I'm still having this issue, hope it gets resolved soon. (There are PRs for this issue) |
I'm having the same issue myself. It spams the console like CRAZY! it's weird though if it starts paused it doesn't do it then. |
Same thing here on Arch and mpv 0.29.0: ~: aplay --list-devices
**** List of PLAYBACK Hardware Devices ****
card 0: HDMI [HDA Intel HDMI], device 3: HDMI 0 [HDMI 0]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: HDMI [HDA Intel HDMI], device 7: HDMI 1 [HDMI 1]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: HDMI [HDA Intel HDMI], device 8: HDMI 2 [HDMI 2]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: PCH [HDA Intel PCH], device 0: ALC3235 Analog [ALC3235 Analog]
Subdevices: 0/1
Subdevice #0: subdevice #0
~: echo $ALSA_CARD
PCH
~: mpv --version
mpv 0.29.0 Copyright © 2000-2018 mpv/MPlayer/mplayer2 projects
built on Sun Jul 22 21:06:23 CEST 2018
ffmpeg library versions:
libavutil 56.14.100
libavcodec 58.18.100
libavformat 58.12.100
libswscale 5.1.100
libavfilter 7.16.100
libswresample 3.1.100
ffmpeg version: n4.0.2 And according to mpv logs, my card doesn't support hw pausing (it's been mentioned in this issue discussion):
|
Same thing here on Void linux and mpv 0.29.0:
|
same here (fedora 28 / armv7hl): Exiting... (End of file) [indy@localhost ~]$ rpm -q mpv | |
mpv version and platform
OS:
Slackware64-current
mpv commit: bca5951
ffmpeg commit: FFmpeg/FFmpeg@318d0fc
Reproduction steps
Expected behavior
mpv should not spam the console when paused.
Actual behavior
mpv spams the console when paused when playing ytdl streams or local files.
I bisected this to the following commit.
945303a
Log file
https://0x0.st/s_SJ.txt
Sample files
This bandcamp link will reproduce it.
https://angellore.bandcamp.com/album/la-litanie-des-cendres
The text was updated successfully, but these errors were encountered: