Audio Streaming from Memory

Status
Not open for further replies.
Hello, I'm new here. I've been messing around with some audio stuff on some boards like ESP32 and made a Pokemon music player, as well as a Nintendo DS music player. I wanted to port these over to Teensy 3.6, although I've been having some issues with the audio library. It's a bit different from what I'm used to, but I noticed that there was code to play audio from memory. Unfortunately, I could not find an example on this. My projects basically just wrote the audio to a buffer until it was full, and would be notified to fill it when more space was available, while the device would stream it. Is there an example that could do this on the teensy? I was thinking of using the DAC for a built in speaker, but using a separate processor board for the headphone output.
 
there are examples, in the IDE select File > Examples > Audio > SamplePlayer
You should watch the audio tutorial https://www.pjrc.com/teensy/td_libs_Audio.html
and read the audio workshop manual https://github.com/PaulStoffregen/AudioWorkshop2015/raw/master/workshop.pdf

With the T3.6 you have the option of playing WAV files from the onboard microSD File > Examples > Audio > WavFilePlayer


https://www.pjrc.com/teensy/gui

The Teensy DAC can only source 1 ma, so its output should be fed into an amp fronting headphone/speakers.
 
Last edited:
there are examples, in the IDE select File > Examples > Audio > SamplePlayer
You should watch the audio tutorial https://www.pjrc.com/teensy/td_libs_Audio.html
and read the audio workshop manual https://github.com/PaulStoffregen/AudioWorkshop2015/raw/master/workshop.pdf

With the T3.6 you have the option of playing WAV files from the onboard microSD File > Examples > Audio > WavFilePlayer


https://www.pjrc.com/teensy/gui

The Teensy DAC can only source 1 ma, so its output should be fed into an amp fronting headphone/speakers.

i just seen the sample player example last night while digging around. it seems to be the closest to what i need, although I'm not sure if it can be a refillable buffer. Playing wav files probably wont work, since both projects "emulate" the sound system, and generate the sequenced music to an audio stream (closest example is like a midi + soundfont being streamed). They could be converted to Wav, although i got the emulation coded, so a whole soundtrack could be as small as a few MB
 
Status
Not open for further replies.
Back
Top