Forum Rule: Always post complete source code & details to reproduce any issue!
Results 1 to 9 of 9

Thread: Writing Directly to DAC (pt8211)

Threaded View

  1. #1
    Junior Member
    Join Date
    Oct 2019
    Posts
    5

    Writing Directly to DAC (pt8211)

    Is there a way to write directly to the pt8211, utilizing the existing code from the audio library? I was thinking you could inherit the update function from output_PT8211.cp and write the buffers to that directly. Maybe there's some easier way to do it?

    For reference: I'm using the Teensy 4.0 with the pt8211 board. It's wired up with the pinouts referenced here: pjrc.com
    Both the beep and sine tests work.

    My project has two (1s length or so) circular sample buffers that need to interact in a specific way, it doesn't seem like you could necessarily implement them with the audio library's built in queue, it isn't big enough. Furthermore, I already have the code working how I like it as a juce project, so porting it would be easier if I could just write more or less directly to the DAC.

    Thanks for the help, let me know if more information is necessary.

    Update: I'm probably an idiot, I'll try to implement this with the built in queues.
    Last edited by snowday; 10-30-2019 at 01:52 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •