https://forum.pjrc.com/threads/64388-PT8211-and-Teensy-4?p=259415&viewfull=1#post259415dds
| oldL = val; | oldL = val; | ||||
| } | } | ||||
| #elif defined(AUDIO_PT8211_INTERPOLATION_CIC) | #elif defined(AUDIO_PT8211_INTERPOLATION_CIC) | ||||
| for (int i=0; i< AUDIO_BLOCK_SAMPLES / 2; i++, offsetL++, offsetR++) { | |||||
| for (int i=0; i< AUDIO_BLOCK_SAMPLES / 2; i++, offsetL++) { | |||||
| int32_t valL = blockL->data[offsetL]; | int32_t valL = blockL->data[offsetL]; | ||||
| int32_t combL[3] = {0}; | int32_t combL[3] = {0}; | ||||
| oldR = val; | oldR = val; | ||||
| } | } | ||||
| #elif defined(AUDIO_PT8211_INTERPOLATION_CIC) | #elif defined(AUDIO_PT8211_INTERPOLATION_CIC) | ||||
| for (int i=0; i< AUDIO_BLOCK_SAMPLES / 2; i++, offsetL++, offsetR++) { | |||||
| for (int i=0; i< AUDIO_BLOCK_SAMPLES / 2; i++, offsetR++) { | |||||
| int32_t valR = blockR->data[offsetR]; | int32_t valR = blockR->data[offsetR]; | ||||
| int32_t combR[3] = {0}; | int32_t combR[3] = {0}; |
| oldL = val; | oldL = val; | ||||
| } | } | ||||
| #elif defined(AUDIO_PT8211_INTERPOLATION_CIC) | #elif defined(AUDIO_PT8211_INTERPOLATION_CIC) | ||||
| for (int i=0; i< AUDIO_BLOCK_SAMPLES / 2; i++, offsetL++, offsetR++) { | |||||
| for (int i=0; i< AUDIO_BLOCK_SAMPLES / 2; i++, offsetL++) { | |||||
| int32_t valL = blockL->data[offsetL]; | int32_t valL = blockL->data[offsetL]; | ||||
| int32_t combL[3] = {0}; | int32_t combL[3] = {0}; | ||||
| oldR = val; | oldR = val; | ||||
| } | } | ||||
| #elif defined(AUDIO_PT8211_INTERPOLATION_CIC) | #elif defined(AUDIO_PT8211_INTERPOLATION_CIC) | ||||
| for (int i=0; i< AUDIO_BLOCK_SAMPLES / 2; i++, offsetL++, offsetR++) { | |||||
| for (int i=0; i< AUDIO_BLOCK_SAMPLES / 2; i++, offsetR++) { | |||||
| int32_t valR = blockR->data[offsetR]; | int32_t valR = blockR->data[offsetR]; | ||||
| int32_t combR[3] = {0}; | int32_t combR[3] = {0}; |