diff options
| author | Reinhard Panhuber <[email protected]> | 2022-03-16 07:13:38 +0100 |
|---|---|---|
| committer | Reinhard Panhuber <[email protected]> | 2022-03-16 07:13:38 +0100 |
| commit | 92ac041869b79aba6948e6440bbfc51ba77130ac (patch) | |
| tree | 02972648b29d53313a941a842978ac6cfcbc48a8 /src/class | |
| parent | 90502739c34b8cbcf37229031eb4f575c33311fa (diff) | |
Add todos and comments
Diffstat (limited to 'src/class')
| -rw-r--r-- | src/class/audio/audio_device.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/class/audio/audio_device.c b/src/class/audio/audio_device.c index 1dbeb7643..37bf76135 100644 --- a/src/class/audio/audio_device.c +++ b/src/class/audio/audio_device.c @@ -2047,6 +2047,8 @@ void audiod_sof (uint8_t rhport, uint32_t frame_count) uint32_t n_cylces = tud_audio_n_get_fm_n_cycles_cb(rhport, audio->ep_fb); uint32_t feedback = ((n_cylces - audio->n_cycles_old) << 3) * audio->feeback_param_factor_N / audio->feeback_param_factor_D; // feeback_param_factor_N has scaling factor of 13 bits, n_cycles 3 and feeback_param_factor_D 1, hence 16.16 precision + // TODO: Implement fast computation in case n_frames * f_s / f_m is a power of two + tud_audio_n_fb_set(i, feedback); audio->n_frames_current = 0; audio->n_cycles_old = n_cylces; |
