I can use the audio library to play sounds, waveforms etc and all works very well, but is there a way to directly input the samples from a sound array or waveform and play continuous at various speeds or data rates.
I can do similar using and interval timer to analogwrite(A14, data) each data sample and I hear the sound as a complete sound waveform all samples. but have no other functions from the library.??
When using the audio library, it uses DSP, phase accum. etc so all samples for the complete wave are not read for all frequencies of playing. eg to get 2x speed out half of the samples are read and values interpolated.
I was wondering how I could read the data in as input and the use the rest of the library functions, filters, mixer etc on the data once inputted.
I can do similar using and interval timer to analogwrite(A14, data) each data sample and I hear the sound as a complete sound waveform all samples. but have no other functions from the library.??
When using the audio library, it uses DSP, phase accum. etc so all samples for the complete wave are not read for all frequencies of playing. eg to get 2x speed out half of the samples are read and values interpolated.
I was wondering how I could read the data in as input and the use the rest of the library functions, filters, mixer etc on the data once inputted.