mirror of
https://github.com/azahar-emu/soundtouch
synced 2025-11-07 07:30:02 +01:00
Increase max nr. of channels from 16 to 32
This commit is contained in:
parent
7f35604eda
commit
ddf28667c9
@ -56,8 +56,9 @@ typedef unsigned long ulong;
|
|||||||
|
|
||||||
namespace soundtouch
|
namespace soundtouch
|
||||||
{
|
{
|
||||||
/// Max allowed number of channels
|
/// Max allowed number of channels. This is not a hard limit but to have some
|
||||||
#define SOUNDTOUCH_MAX_CHANNELS 16
|
/// maximum value for argument sanity checks -- can be increased if necessary
|
||||||
|
#define SOUNDTOUCH_MAX_CHANNELS 32
|
||||||
|
|
||||||
/// Activate these undef's to overrule the possible sampletype
|
/// Activate these undef's to overrule the possible sampletype
|
||||||
/// setting inherited from some other header file:
|
/// setting inherited from some other header file:
|
||||||
|
|||||||
@ -155,7 +155,7 @@ uint FIRFilter::evaluateFilterMulti(SAMPLETYPE *dest, const SAMPLETYPE *src, uin
|
|||||||
assert(src != nullptr);
|
assert(src != nullptr);
|
||||||
assert(dest != nullptr);
|
assert(dest != nullptr);
|
||||||
assert(filterCoeffs != nullptr);
|
assert(filterCoeffs != nullptr);
|
||||||
assert(numChannels < 16);
|
assert(numChannels <= SOUNDTOUCH_MAX_CHANNELS);
|
||||||
|
|
||||||
// hint compiler autovectorization that loop length is divisible by 8
|
// hint compiler autovectorization that loop length is divisible by 8
|
||||||
int ilength = length & -8;
|
int ilength = length & -8;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user