diff options
| author | Reinhard Panhuber <[email protected]> | 2021-04-07 20:07:28 +0200 |
|---|---|---|
| committer | Reinhard Panhuber <[email protected]> | 2021-04-07 20:07:28 +0200 |
| commit | 8eacdffebdcc10a6fffdc248ef6086b223f3edf3 (patch) | |
| tree | 9d6fa9ec83fa56ee671830b2ead8ceaea4c1eedd /src/class/audio/audio_device.h | |
| parent | d9a0cc9e9f328db15df6cc31b2a04532d4e8ad35 (diff) | |
Optimize encode/decode - refactor unnecessary repetitive division
Diffstat (limited to 'src/class/audio/audio_device.h')
| -rw-r--r-- | src/class/audio/audio_device.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/class/audio/audio_device.h b/src/class/audio/audio_device.h index 81e0024d7..f91540b64 100644 --- a/src/class/audio/audio_device.h +++ b/src/class/audio/audio_device.h @@ -240,6 +240,9 @@ // Enable encoding/decodings - for these to work, support FIFOs need to be setup in appropriate numbers and size // The actual coding parameters of active AS alternate interface is parsed from the descriptors +// The item size of the FIFO is always fixed to one i.e. bytes! Furthermore, the actively used FIFO depth is reconfigured such that the depth is a multiple of the current sample size in order to avoid samples to get split up in case of a wrap in the FIFO ring buffer (depth = (max_depth / sampe_sz) * sampe_sz)! +// This is important to remind in case you use DMAs! If the sample sizes changes, the DMA MUST BE RECONFIGURED just like the FIFOs for a different depth!!! + // For PCM encoding/decoding #ifndef CFG_TUD_AUDIO_ENABLE_ENCODING |
