[MPlayer-cvslog] r20256 - in trunk/libao2: ao_dsound.c ao_win32.c

reimar subversion at mplayerhq.hu
Sun Oct 15 22:48:26 CEST 2006


Author: reimar
Date: Sun Oct 15 22:48:26 2006
New Revision: 20256

Modified:
   trunk/libao2/ao_dsound.c
   trunk/libao2/ao_win32.c

Log:
Implement AOPLAY_FINAL_CHUNK support for dshow and win32 out.


Modified: trunk/libao2/ao_dsound.c
==============================================================================
--- trunk/libao2/ao_dsound.c	(original)
+++ trunk/libao2/ao_dsound.c	Sun Oct 15 22:48:26 2006
@@ -605,6 +605,7 @@
 	if(space > buffer_size)space -= buffer_size; // write_offset < play_offset
 	if(space < len) len = space;
 
+	if (!(flags & AOPLAY_FINAL_CHUNK))
 	len = (len / ao_data.outburst) * ao_data.outburst;
 	return write_buffer(data, len);
 }

Modified: trunk/libao2/ao_win32.c
==============================================================================
--- trunk/libao2/ao_win32.c	(original)
+++ trunk/libao2/ao_win32.c	Sun Oct 15 22:48:26 2006
@@ -322,6 +322,7 @@
 // return: number of bytes played
 static int play(void* data,int len,int flags)
 {
+	if (!(flags & AOPLAY_FINAL_CHUNK))
 	len = (len/ao_data.outburst)*ao_data.outburst;
 	return write_waveOutBuffer(data,len);
 }



More information about the MPlayer-cvslog mailing list