|
|
|
|
|
|
|
|
if (blockb) release(blockb); // of the blocks is NULL then it's trouble anyway |
|
|
if (blockb) release(blockb); // of the blocks is NULL then it's trouble anyway |
|
|
return; |
|
|
return; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
#if defined(KINETISK) |
|
|
pa = (uint32_t *)(blocka->data); |
|
|
pa = (uint32_t *)(blocka->data); |
|
|
pb = (uint32_t *)(blockb->data); |
|
|
pb = (uint32_t *)(blockb->data); |
|
|
end = pa + AUDIO_BLOCK_SAMPLES/2; |
|
|
end = pa + AUDIO_BLOCK_SAMPLES/2; |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
transmit(blocka, 0); // mid (encoding) or left (decoding) |
|
|
transmit(blocka, 0); // mid (encoding) or left (decoding) |
|
|
transmit(blockb, 1); // side (encoding) or right (decoding) |
|
|
transmit(blockb, 1); // side (encoding) or right (decoding) |
|
|
|
|
|
#endif |
|
|
release(blocka); |
|
|
release(blocka); |
|
|
release(blockb); |
|
|
release(blockb); |
|
|
} |
|
|
} |