Files
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
..
2015-11-08 20:01:20 +01:00
2015-12-21 16:58:51 -08:00
2015-11-07 15:22:30 +01:00
2015-11-07 15:22:30 +01:00
2015-11-07 15:22:30 +01:00
2015-11-07 15:22:30 +01:00
2015-04-13 12:10:01 +02:00
2015-04-13 12:10:01 +02:00