changeset 12913:e7309a3b65f6

support for 24 bit audio
author reimar
date Thu, 29 Jul 2004 16:23:16 +0000
parents 1f6bb2356d18
children 590ce5bbf2ef
files libaf/af_channels.c
diffstat 1 files changed, 15 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libaf/af_channels.c	Thu Jul 29 14:59:48 2004 +0000
+++ b/libaf/af_channels.c	Thu Jul 29 16:23:16 2004 +0000
@@ -49,6 +49,21 @@
     }
     break;
   }
+  case 3:{
+    int8_t* tin  = (int8_t*)in;
+    int8_t* tout = (int8_t*)out;
+    tin  += 3 * inos;
+    tout += 3 * outos;
+    len = len / ( 3 * ins);
+    while (len--) {
+      tout[0] = tin[0];
+      tout[1] = tin[1];
+      tout[2] = tin[2];
+      tin += 3 * ins;
+      tout += 3 * outs;
+    }
+    break;
+  }
   case 4:{
     int32_t* tin  = (int32_t*)in;
     int32_t* tout = (int32_t*)out;