# HG changeset patch # User reimar # Date 1091118196 0 # Node ID e7309a3b65f6502be051b9510d6d2ae91f69ad88 # Parent 1f6bb2356d18a4f934e66efcc9e5c568ffae010c support for 24 bit audio diff -r 1f6bb2356d18 -r e7309a3b65f6 libaf/af_channels.c --- 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;