Skip to content

Draft: wip: initial setup for buffering device data

Lennart Melzer requested to merge feature/device-audio-rate into main

in preparation for upsampling from device-rate to audio-rate

next steps:

  • potentially implement a windowed sinc filter for upsampling as per standford paper
  • decide on whether it would make sense to first implement naive linear interpolation to make it work and then move to a better filter implementation (i.e. just fill in zeroes in output buffer between input samples and lerp the gaps)
  • decide on how to handle fractional upsampling (wikipedia recommends for N/M ratio upsampling to first upsample by N then downsample by M, assuming N > M)
  • check back with forceDimension on dhdGetComFreq() if this actually tells us the device rate (which would allow us to skip measuring device rate manually)

Merge request reports