Most simplistic support for 5 channels. Not actually tested. Uses the first

two channels of five and ignores the rest.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33660 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stephan Aßmus
2009-10-19 18:24:11 +00:00
parent 15477ca556
commit 169bcbe7c0
@@ -61,6 +61,18 @@ convert(Type* inBuffer, Type* outBuffer, int32 inChannels, int32 outChannels,
break;
}
break;
case 5:
switch (outChannels) {
case 2:
for (int32 i = 0; i < frames; i++) {
outBuffer[0] = inBuffer[0];
outBuffer[1] = inBuffer[1];
inBuffer += 5;
outBuffer += 2;
}
break;
}
break;
}
}