changeset 22104:5ecca25377e0

Support for AOPLAY_FINAL_CHUNK in ao_sdl.c
author reimar
date Sun, 04 Feb 2007 10:01:13 +0000
parents 0427f8190a12
children ac0ca0d80917
files libao2/ao_sdl.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libao2/ao_sdl.c	Sun Feb 04 09:33:57 2007 +0000
+++ b/libao2/ao_sdl.c	Sun Feb 04 10:01:13 2007 +0000
@@ -321,6 +321,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;
 #if 0	
 	int ret;