X-Git-Url: https://git.videolan.org/gitweb.cgi/vlc.git/?p=vlc.git;p=vlc.git;a=blobdiff_plain;f=modules%2Fgui%2Fmacosx%2Faout.m;h=e3471c40a3622439a92ded60cd54cd68c87f1ca0;hp=9b89e9a8bc795facf472e4c0ae6ac086b6a12b09;hb=e035de49618140af6f33b08eb6a19944a2cfae47;hpb=7002c3ed9369371461bb81772b08c9b00622625e diff --git a/modules/gui/macosx/aout.m b/modules/gui/macosx/aout.m index 9b89e9a8bc..e3471c40a3 100644 --- a/modules/gui/macosx/aout.m +++ b/modules/gui/macosx/aout.m @@ -2,7 +2,7 @@ * aout.m: CoreAudio output plugin ***************************************************************************** * Copyright (C) 2002-2003 VideoLAN - * $Id: aout.m,v 1.22 2003/01/21 00:47:43 jlj Exp $ + * $Id: aout.m,v 1.23 2003/02/21 16:31:37 hartman Exp $ * * Authors: Colin Delacroix * Jon Lech Johansen @@ -468,8 +468,20 @@ static OSStatus IOCallback( AudioDeviceID inDevice, } else { - memset( outOutputData->mBuffers[ 0 ].mData, + if( p_aout->output.output.i_format == VLC_FOURCC('f','l','3','2') ) + { + int i; + int i_size = p_sys->i_buffer_size / sizeof(float); + + float * a = (float *)outOutputData->mBuffers[ 0 ].mData; + for ( i = 0 ; i < i_size ; i++ ) + *a++ = 0.0; + } + else + { + memset( outOutputData->mBuffers[ 0 ].mData, 0, p_sys->i_buffer_size ); + } } return( noErr );