changeset 6372:075cca2558f9

Applying patch from Eric that fixes 6ch resampling
author anders
date Mon, 10 Jun 2002 12:10:52 +0000
parents 622d57683187
children 8d5d339f2944
files libao2/ao_plugin.c
diffstat 1 files changed, 2 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/libao2/ao_plugin.c	Mon Jun 10 09:59:44 2002 +0000
+++ b/libao2/ao_plugin.c	Mon Jun 10 12:10:52 2002 +0000
@@ -250,14 +250,12 @@
   // Limit length to avoid over flow in plugins
   int tmp = get_space();
   int ret_len =(tmp<len)?tmp:len;
+  // keep all channels of each sample together
+  ret_len -= ret_len % (ao_plugin_local_data.channels*ao_plugin_local_data.bpm/8);
   if(ret_len){
     // Filter data
     ao_plugin_data.len=ret_len;
     ao_plugin_data.data=data;
-
-// update plugins and uncoment that
-//    ao_plugin_data.channels=ao_plugin_local_data.channels;
-//    ao_plugin_data.format=ao_plugin_local_data.format;
     
     while(plugin(i))
       plugin(i++)->play();