Fixed HSP sound quality issues:
- fixed HF caused by invalid output block size during interpolation of
the bluetooth input,
- increased block size to increase time send interval to 8ms
Fixed issue with error handling when writing to overflowed stream.
Signed-off-by: Marcin Smoczyński <smoczynski.marcin@gmail.com>
Add voice transcoding during phone call with two basic transforms:
- sample rate downscaling by a factor of 2 with a decimator
- sample rate upscaling by a factor of 2 with an interpolator (no
low-pass filter)
Signed-off-by: Marcin Smoczyński <smoczynski.marcin@gmail.com>
Add basic interpolator and decimator to change sample rates by a factor
of a prime number. Interpolator repeats samples forming a stair signal,
while decimator drops excessive samples.
Templates have been used to utilize fast integer operations contrary to
byte-by-byte operations for number of bit width vs channel count
combinations.
Signed-off-by: Marcin Smoczyński <smoczynski.marcin@gmail.com>