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

Thread: Can AudioZero Library be modified to play 12bit audio on Teensy LC?

  1. #1
    Senior Member
    Join Date
    Aug 2014
    Posts
    143

    Can AudioZero Library be modified to play 12bit audio on Teensy LC?

    I would like to use the 12bit DAC on the Teensy LC (or if not able, the 10bit DAC on Arduino Zero), to play 12 bit - 22khz RAW audio from a serial flash chip like windbond's W25Q128 or W25Q256.

    I used Arduino WaveShield to play a lot of audio at 12 bits 22khz and it sounds much better than 8 bit. The files are 16bit but truncated to 12bit from my understanding. Lower noise flower/less hiss in files.

    Is there a simple way to modify the AudioZero library to change to a custom bit depth? or will there be RAM issues etc? I really need a cortexM0 or better.

  2. #2
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    22,081
    This port of AudioZero to Teensy LC may not be everything you want, but it's probably a better starting point than having to port the library from scratch.

    https://github.com/PaulStoffregen/AudioZero

    Recent versions of the regular Teensy audio library now have some very limited support for Teensy LC. Again, probably not everything you want, but maybe worth another look if you're used to the older versions which didn't have any Teensy LC support?

  3. #3
    Senior Member
    Join Date
    Aug 2014
    Posts
    143
    OK, I'll take a look. I mostly just need to use Flash memory, and try to get 8bit to 12bit audio if possible. Multi-sound playback at same time is a bonus.

Posting Permissions

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