Draft: wip: initial setup for buffering device data
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 byN
then downsample byM
, assumingN > 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)