mirror of
https://github.com/opentx/opentx.git
synced 2025-07-16 12:55:12 +03:00
parent
a19f4c78bf
commit
44133b595d
12 changed files with 935 additions and 875 deletions
|
@ -517,22 +517,21 @@ extern OS_MutexID audioMutex;
|
|||
void printAudioVars()
|
||||
{
|
||||
for(int n = 0; n < AUDIO_BUFFER_COUNT; n++) {
|
||||
serialPrint("Audio Buffer %d: size: %u, state: %u, ", n, (uint32_t)audioBuffers[n].size, (uint32_t)audioBuffers[n].state);
|
||||
serialPrint("Audio Buffer %d: size: %u, ", n, (uint32_t)audioBuffers[n].size);
|
||||
dump((uint8_t *)audioBuffers[n].data, 32);
|
||||
}
|
||||
serialPrint("fragments:");
|
||||
for(int n = 0; n < AUDIO_QUEUE_LENGTH; n++) {
|
||||
serialPrint("%d: type %u: id: %u, repeat: %u, ", n, (uint32_t)audioQueue.fragments[n].type,
|
||||
(uint32_t)audioQueue.fragments[n].id,
|
||||
(uint32_t)audioQueue.fragments[n].repeat);
|
||||
if ( audioQueue.fragments[n].type == FRAGMENT_FILE) {
|
||||
serialPrint(" file: %s", audioQueue.fragments[n].file);
|
||||
serialPrint("%d: type %u: id: %u, repeat: %u, ", n, (uint32_t)audioQueue.fragmentsFifo.fragments[n].type,
|
||||
(uint32_t)audioQueue.fragmentsFifo.fragments[n].id,
|
||||
(uint32_t)audioQueue.fragmentsFifo.fragments[n].repeat);
|
||||
if ( audioQueue.fragmentsFifo.fragments[n].type == FRAGMENT_FILE) {
|
||||
serialPrint(" file: %s", audioQueue.fragmentsFifo.fragments[n].file);
|
||||
}
|
||||
}
|
||||
|
||||
serialPrint("audioQueue:");
|
||||
serialPrint(" ridx: %d, widx: %d", audioQueue.ridx, audioQueue.widx);
|
||||
serialPrint(" bufferRIdx: %d, bufferWIdx: %d", audioQueue.bufferRIdx, audioQueue.bufferWIdx);
|
||||
serialPrint("FragmentFifo: ridx: %d, widx: %d", audioQueue.fragmentsFifo.ridx, audioQueue.fragmentsFifo.widx);
|
||||
serialPrint("audioQueue: readIdx: %d, writeIdx: %d, full: %d", audioQueue.buffersFifo.readIdx, audioQueue.buffersFifo.writeIdx, audioQueue.buffersFifo.bufferFull);
|
||||
|
||||
serialPrint("normalContext: %u", (uint32_t)audioQueue.normalContext.fragment.type);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue