jidagraphy
Active member
Short version :
Will there ever be a support for outputting audio to DAC chips via SPI?
How would I write a driver/module that I can use as a module that does such thing?
Slightly longer version:
By design choices, I choose not to use any SMD ICs on my board.
I have my teensy 4.0s that do not have dacs, but I really want/need them to output audio without having to use the audio shield. I have myself a couple of MCP4822s (SPI DAC) that I am trying to stream audio to, but I having hard time even imagining where to start. I did read through output_dac.cpp source file too, but I'm not sure if my coding skills are THAT high to understand whats going on . (but I will)
I can probably find resources to learn how to make my DACs make sounds via SPI, but the problem is how I can use Audio Library at the same time. I.e. write a new module that acts as if its one of the patchable module from the library.
Im trying not to blindly ask for how to do everything, and trying to at least attempt it first. So I'll ask a few questions instead.
1. Why isn't it supported / ideal to output audio by SPI to DAC? efficiency? quality? noone requested?
2. What makes it *difficult* to stream audio through SPI DAC?
3. I'm seeing if I can modify output_dac.cpp so I can make it output audio to external DAC chip instead of onboard DAC. I haven't understood a lot of it but I'll try. Could I get any guidance or tips on where I should start looking?
Thank you guys,
You are all stars.
Jin
P.S. I do not mind having to sacrifice sample rate - I can pretend I intended lo-fi sound lol. Probably would want it more if it was.
Will there ever be a support for outputting audio to DAC chips via SPI?
How would I write a driver/module that I can use as a module that does such thing?
Slightly longer version:
By design choices, I choose not to use any SMD ICs on my board.
I have my teensy 4.0s that do not have dacs, but I really want/need them to output audio without having to use the audio shield. I have myself a couple of MCP4822s (SPI DAC) that I am trying to stream audio to, but I having hard time even imagining where to start. I did read through output_dac.cpp source file too, but I'm not sure if my coding skills are THAT high to understand whats going on . (but I will)
I can probably find resources to learn how to make my DACs make sounds via SPI, but the problem is how I can use Audio Library at the same time. I.e. write a new module that acts as if its one of the patchable module from the library.
Im trying not to blindly ask for how to do everything, and trying to at least attempt it first. So I'll ask a few questions instead.
1. Why isn't it supported / ideal to output audio by SPI to DAC? efficiency? quality? noone requested?
2. What makes it *difficult* to stream audio through SPI DAC?
3. I'm seeing if I can modify output_dac.cpp so I can make it output audio to external DAC chip instead of onboard DAC. I haven't understood a lot of it but I'll try. Could I get any guidance or tips on where I should start looking?
Thank you guys,
You are all stars.
Jin
P.S. I do not mind having to sacrifice sample rate - I can pretend I intended lo-fi sound lol. Probably would want it more if it was.