mpv/audio
Kevin Mitchell 5afa68835a ao_wasapi: fix delay calculation
Make sure that subtraction of performance counters is done correctly.
Follow the *exact* instructions for converting performance counter to something
comparable to the QPCposition returned by IAudioClient::GetPosition
https://msdn.microsoft.com/en-us/library/windows/desktop/dd370889%28v=vs.85%29.aspx

Also make sure that subtraction of unsigned integers is stored into a signed
integer to avoid nastiness. Also be more careful about overflow in the
conversion of the device position into number of samples.

Avoid casting mp_time_us() to a double, and use llrint to convert the
double precision delay_us back to integer for ao_read_data.

Finally, actually check the return value of ao_read_data and add a verbose
message if it is not the expected value. Unfortunately,
there is no way to tell WASAPI when this happens since the frame_count in
ReleaseBuffer must match GetBuffer.
2015-12-21 16:58:51 -08:00
..
decode dec_audio: add missing include 2015-11-08 20:01:20 +01:00
filter af_lavrresample: fix build on Libav 2015-11-26 00:25:28 +01:00
out ao_wasapi: fix delay calculation 2015-12-21 16:58:51 -08:00
audio.c audio: use AVFrames with more than 8 channels correctly 2015-10-26 15:54:00 +01:00
audio.h audio: move PTS setting out of the decoder 2015-11-08 17:22:56 +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
chmap.c chmap: remove MPlayer layouts 2015-11-07 15:22:30 +01:00
chmap.h chmap: remove MPlayer layouts 2015-11-07 15:22:30 +01:00
chmap_sel.c chmap: remove MPlayer layouts 2015-11-07 15:22:30 +01:00
chmap_sel.h chmap: remove MPlayer layouts 2015-11-07 15:22:30 +01:00
fmt-conversion.c
fmt-conversion.h
format.c audio: fix af_fmt_change_bytes() with spdif formats 2015-11-07 15:07:50 +01:00
format.h ao_lavc: use new sample format determination code 2015-09-10 23:38:42 +02:00
mixer.c mixer: fix volume initialization with --af=volume 2015-12-11 20:52:37 +01:00
mixer.h audio: change range of volume option/property 2015-05-22 18:35:03 +02:00