Disable Audio lib

Status
Not open for further replies.

capicoso

Member
Hi. Using teensy 3.2 here with the audio lib using the builtin DAC(A14).
I have a question: Can I disable the library while the program is running so I can use the DAC pin without the audio lib? All I found was the function AudioNoInterrupts() but It doesn't let me use the A14 normally.
Thanks
 
Yes, the queue object is the proper way to inject data. Or you could use the DC object, if you just want to occasionally (much slower than audio rate) change the voltage.

If you do find a hack that works directly with the DAC registers, please understand that is not supported. The next audio lib release will very likely break any such code, since I have two DAC contributions pending (oversample from Frank and FIFO from TNI). When those are merged, we'll have much better DAC output, but the way the hardware is used will become very different and will likely become incompatible with any hacks that might work today.
 
Status
Not open for further replies.
Back
Top