1
mirror of https://github.com/mpv-player/mpv synced 2024-10-18 10:25:02 +02:00
mpv/audio
wm4 d634394da6 ao_alsa: make failure of buffer parameter setting non-fatal
These calls actually can leave the ALSA configuration space empty (how
very useful), which is why snd_pcm_hw_params() can fail. An earlier
change intended to make this non-fatal, but it didn't work for this
reason.

Backup the old parameters, so we can retry with the non-empty
configuration space. (It has to be non-empty, because the previous
setters didn't fail.)

Note that the buffer settings are not very important to us. They're
a leftover from MPlayer, which needed to write enough data to the
audio device to not underrun while decoding and displaying a video
frame. In mpv, most of these things happen asynchronously, _and_
there is a dedicated thread just for feeding the audio device, so
we should be pretty imune even against extreme buffer settings. But
I suppose it's still useful to prevent PulseAudio from making the
buffer too large, so still keep this code.
2015-11-03 00:23:28 +01:00
..
decode audio: make spdif re-probe from normal decoding work 2015-10-06 20:21:29 +02:00
filter Replace deprecated av_free_packet() calls 2015-10-28 23:48:56 +01:00
out ao_alsa: make failure of buffer parameter setting non-fatal 2015-11-03 00:23:28 +01:00
audio_buffer.c player: add audio drop/duplicate mode 2015-10-27 20:56:46 +01:00
audio_buffer.h player: add audio drop/duplicate mode 2015-10-27 20:56:46 +01:00
audio.c audio: use AVFrames with more than 8 channels correctly 2015-10-26 15:54:00 +01:00
audio.h audio/filter: remove some useless filters 2015-09-03 23:55:36 +02:00
chmap_sel.c audio: always log channel maps before determining final map 2015-10-26 15:52:08 +01:00
chmap_sel.h audio: always log channel maps before determining final map 2015-10-26 15:52:08 +01:00
chmap.c audio: improve mp_chmap_to_lavc_unchecked() unknown chmap behavior 2015-10-26 15:52:21 +01:00
chmap.h audio: bump maximum number of channels to 16 2015-10-26 15:54:19 +01:00
fmt-conversion.c Update license headers 2015-04-13 12:10:01 +02:00
fmt-conversion.h Update license headers 2015-04-13 12:10:01 +02:00
format.c audio/format: revise af_format_conversion_score 2015-09-10 23:58:09 -07:00
format.h ao_lavc: use new sample format determination code 2015-09-10 23:38:42 +02:00
mixer.c audio: fix restoring volume 2015-07-27 15:07:51 +02:00
mixer.h audio: change range of volume option/property 2015-05-22 18:35:03 +02:00