forked from PAWPAW-Mirror/lib_xua
Move I2S US3 and DS3 counters from global space to deliver()
This commit is contained in:
@@ -57,8 +57,6 @@ static unsigned samplesIn[2][MAX(NUM_USB_CHAN_IN, IN_CHAN_COUNT)];
|
|||||||
#undef SPDIF_RX
|
#undef SPDIF_RX
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
static int i2sInDownsamplingCounter = 0;
|
|
||||||
static int i2sOutUpsamplingCounter = 0;
|
|
||||||
#if (I2S_DOWNSAMPLE_FACTOR_IN > 1) || (I2S_UPSAMPLE_FACTOR_OUT > 1)
|
#if (I2S_DOWNSAMPLE_FACTOR_IN > 1) || (I2S_UPSAMPLE_FACTOR_OUT > 1)
|
||||||
#include "src.h"
|
#include "src.h"
|
||||||
#endif // (I2S_DOWNSAMPLE_FACTOR_IN > 1) || (I2S_UPSAMPLE_FACTOR_OUT > 1)
|
#endif // (I2S_DOWNSAMPLE_FACTOR_IN > 1) || (I2S_UPSAMPLE_FACTOR_OUT > 1)
|
||||||
@@ -505,6 +503,9 @@ unsigned static deliver(chanend c_out, chanend ?c_spd_out,
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
int i2sInDownsamplingCounter = 0;
|
||||||
|
int i2sOutUpsamplingCounter = 0;
|
||||||
|
|
||||||
#if (I2S_DOWNSAMPLE_FACTOR_IN > 1)
|
#if (I2S_DOWNSAMPLE_FACTOR_IN > 1)
|
||||||
union i2sInDs3
|
union i2sInDs3
|
||||||
{
|
{
|
||||||
@@ -539,8 +540,6 @@ unsigned static deliver(chanend c_out, chanend ?c_spd_out,
|
|||||||
return command;
|
return command;
|
||||||
}
|
}
|
||||||
|
|
||||||
i2sInDownsamplingCounter = 0;
|
|
||||||
|
|
||||||
InitPorts(divide);
|
InitPorts(divide);
|
||||||
|
|
||||||
/* Main Audio I/O loop */
|
/* Main Audio I/O loop */
|
||||||
|
|||||||
Reference in New Issue
Block a user