[vlc-devel] commit: auhal: Don't spend 16MB of heap for nothing. (Pierre d'Herbemont )

Kaarlo Räihä agent_007 at luukku.com
Fri Dec 11 09:32:32 CET 2009


Tony Anecito kirjoitti 11.12.2009 kello 00:40:
> Hi Pierre,
> 
> Will this help with reducing memory footprint for other OS's such as
> windows?
> 

AFAIK Auhal is Mac only audio output module.
http://developer.apple.com/mac/library/technotes/tn2002/tn2091.html

> Thanks,
> -Tony
> 
> --- On Thu, 12/10/09, git version control <git at videolan.org> wrote:
> 
> > From: git version control <git at videolan.org>
> > Subject: [vlc-devel] commit: auhal: Don't spend 16MB of heap for nothing.
> (Pierre d'Herbemont )
> > To: vlc-devel at videolan.org
> > Date: Thursday, December 10, 2009, 3:02 PM
> > vlc | branch: master | Pierre
> > d'Herbemont <pdherbemont at free.fr>
> > | Thu Dec 10 22:57:00 2009 +0100|
> > [b1e92e7be06f8d97649ee2b2946e46513f87ed3c] | committer:
> > Pierre d'Herbemont 
> > 
> > auhal: Don't spend 16MB of heap for nothing.
> > 
> > This saves 16MB minus 16kB of live memory during audio
> > stream playback on Mac OS X.
> > 
> > >
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=b1e92e7be06f8d97649ee
> 2b2946e46513f87ed3c
> > ---
> > 
> >  modules/audio_output/auhal.c |    4 +++-
> >  1 files changed, 3 insertions(+), 1 deletions(-)
> > 
> > diff --git a/modules/audio_output/auhal.c
> > b/modules/audio_output/auhal.c
> > index 12ace35..08842d0 100644
> > --- a/modules/audio_output/auhal.c
> > +++ b/modules/audio_output/auhal.c
> > @@ -77,7 +77,7 @@
> >      sfm.mChannelsPerFrame,
> > sfm.mBitsPerChannel
> >  
> >  #define FRAMESIZE 2048
> > -#define BUFSIZE 0xffffff
> > +#define BUFSIZE (FRAMESIZE * 8)
> >  #define AOUT_VAR_SPDIF_FLAG 0xf00000
> >  
> >  /*
> > @@ -1359,6 +1359,8 @@ static OSStatus RenderCallbackAnalog(
> > vlc_object_t *_p_aout,
> >              
> >    vlc_memcpy( p_sys->p_remainder_buffer,
> >                
> >          
> >    &p_buffer->p_buffer[i_second_mData_bytes],
> >                
> >          
> >    p_sys->i_total_bytes );
> > +               
> > aout_BufferFree( p_buffer );
> > +               
> > break;
> >              }
> >              else
> >              {
> > 
> > _______________________________________________
> > vlc-devel mailing list
> > To unsubscribe or modify your subscription options:
> > http://mailman.videolan.org/listinfo/vlc-devel
> > 
> 
> 
>       
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> http://mailman.videolan.org/listinfo/vlc-devel


....................................................................
Luukku Plus -paketilla pääset eroon tila- ja turvallisuusongelmista.
Hanki Luukku Plus ja helpotat elämääsi. http://www.mtv3.fi/luukku



More information about the vlc-devel mailing list