# HG changeset patch # User reimar # Date 1170583273 0 # Node ID 5ecca25377e0013467ffec68837bb5270d1d4fe2 # Parent 0427f8190a128f3e7f7a140233437d21723f53da Support for AOPLAY_FINAL_CHUNK in ao_sdl.c diff -r 0427f8190a12 -r 5ecca25377e0 libao2/ao_sdl.c --- 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;