Author: pacman Date: Wed Jun 28 21:22:27 2006 New Revision: 18846 Modified: trunk/libao2/ao_oss.c Log: Respect AOPLAY_FINAL_CHUNK Modified: trunk/libao2/ao_oss.c ============================================================================== --- trunk/libao2/ao_oss.c (original) +++ trunk/libao2/ao_oss.c Wed Jun 28 21:22:27 2006 @@ -495,8 +495,13 @@ // it should round it down to outburst*n // return: number of bytes played static int play(void* data,int len,int flags){ - len/=ao_data.outburst; - len=write(audio_fd,data,len*ao_data.outburst); + if(len==0) + return len; + if(len>ao_data.outburst || !(flags & AOPLAY_FINAL_CHUNK)) { + len/=ao_data.outburst; + len*=ao_data.outburst; + } + len=write(audio_fd,data,len); return len; }
Hi, On Wed, Jun 28, 2006 at 09:22:27PM +0200, pacman wrote:
Author: pacman
Could everyone please check that their SVN commit account names are in AUTHORS file? (in this case it was possible to guess via the email address mentioned there, still I find a clear mapping commit names <-> IRC names <-> real names very nice.) Greetings, Reimar Döffinger
participants (2)
-
pacman -
Reimar Döffinger