PDA

View Full Version : recording wave files and changing sample speed



Reggie
07-10-2016, 02:09 PM
Hi all, I've got a teensy 3.2 and an audio board due to arrive in the post, while I'm waiting I thought I'd ask a couple of questions.

1. Is there any code around for recording a complete wave file? I noticed the recorder example records raw wave only, so it seems it's only missing the file header?

2. is it possible to adjust the playback speed of samples? As I understand things, the sample rate and bitrate for the audio library is fixed at 44.1k and 16bit, it's not a game changer if you can't but it would be great if you could.

Reggie.

Theremingenieur
07-11-2016, 11:19 PM
You might write an algorithm with a finite impulse response filter to drop/add/extrapolate samples without aliasing in order to increase or reduce the audio speed while keeping the sample rate constant.