# HG changeset patch # User anders # Date 1012128103 0 # Node ID 0a95c5074c509832d51381c79744810fd974736a # Parent 4f36681c95f82b8f1b3410f27c06b7ea8dc43365 Fixed sig 11 caused by resampling plugin, some cosmetic changes and speed improvements diff -r 4f36681c95f8 -r 0a95c5074c50 libao2/ao_plugin.c --- a/libao2/ao_plugin.c Sun Jan 27 08:07:01 2002 +0000 +++ b/libao2/ao_plugin.c Sun Jan 27 10:41:43 2002 +0000 @@ -159,7 +159,7 @@ if(!ok) return 0; - // Allocate output buffer */ + // Allocate output buffer if(ao_plugin_local_data.buf) free(ao_plugin_local_data.buf); ao_plugin_local_data.buf=malloc(MAX_OUTBURST); diff -r 4f36681c95f8 -r 0a95c5074c50 libao2/pl_delay.c --- a/libao2/pl_delay.c Sun Jan 27 08:07:01 2002 +0000 +++ b/libao2/pl_delay.c Sun Jan 27 10:41:43 2002 +0000 @@ -101,18 +101,16 @@ // processes 'ao_plugin_data.len' bytes of 'data' // called for every block of data static int play(){ - int i=0; - int j=0; - int k=0; // Copy end of prev block to begining of buffer - for(i=0;i