mpv/libao2
attila 5cd067e6a0 This patch contains bugfixes for the esd audio output driver that I
uncovered while trying to send sound to a remote esd server over a
wireless (11 mbs, just enough to handle to sound) link.

First, the sound was full "ticking" sounds.  I found a bug that
prevented the "send the remainder of this block" code from ever being
called - so large chunks of audio were simply being ignored.  Fixing
this bug removed the "ticking" from audio streams.

Fixing this bug, however, uncovered another problem - when the socket
buffer was full, doing a blocking write to finish the buffer would take
far too long and would turn video into a chunky mess.  I'd imagine this
blocking write would be fine for an audio-only stream, but it turns out
to hold up the video far too much.

The solution in this patch is to write as much data as possible to the
socket, and then return as soon as possible, reporting the number of
bytes actually written accurately back to mplayer.  I've tested it on
both local and remote esd servers, and it works well.

Patch by Benjamin Osheroff <ben@gimbo.net>


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@11620 b3059339-0415-0410-9bf9-f77b7e298cf2
2003-12-10 12:19:13 +00:00
..
.cvsignore
Makefile do it the standard way (tm) 2003-05-23 12:37:58 +00:00
afmt.c
afmt.h
ao_alsa1x.c many small typo and grammar fixes 2003-10-04 17:29:08 +00:00
ao_alsa5.c removing my (non-working) email address 2003-07-03 20:07:54 +00:00
ao_alsa9.c many small typo and grammar fixes 2003-10-04 17:29:08 +00:00
ao_arts.c
ao_dxr2.c
ao_esd.c This patch contains bugfixes for the esd audio output driver that I 2003-12-10 12:19:13 +00:00
ao_macosx.c cleanup/cosmetic patch by the author :) 2003-05-22 16:12:54 +00:00
ao_mpegpes.c
ao_nas.c
ao_null.c
ao_oss.c Set close-on-exec after newer open (in reset func). Patch by Andriy Gapon <agapon@cv-nj.com> 2003-08-13 21:04:15 +00:00
ao_pcm.c 64bit types fix by a unkown mandrake 64bit expert 2003-10-26 13:43:30 +00:00
ao_plugin.c
ao_sdl.c IRIX support by Timo Kanera <timo@kanera.de> 2003-09-07 18:15:47 +00:00
ao_sgi.c A-V sync fix by Timo Kanera <timo@kanera.de>. 2003-10-30 00:08:06 +00:00
ao_sun.c fix bps calculation when resampling, 2003-06-22 21:29:15 +00:00
ao_win32.c original config: 2003-11-23 17:04:19 +00:00
audio_out.c Native MacOSX audio output by Dan Christiansen <danchr@daimi.au.dk> 2003-05-21 21:15:46 +00:00
audio_out.h
audio_out_internal.h
audio_plugin.h
audio_plugin_internal.h
eq.h
filter.h
fir.h
firfilter.c
pl_delay.c many small typo and grammar fixes 2003-10-04 17:29:08 +00:00
pl_eq.c
pl_extrastereo.c
pl_format.c
pl_resample.c
pl_surround.c
pl_volnorm.c
pl_volume.c
remez.c
remez.h