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

Thread: Play quad channel wav file from SD

  1. #1

    Play quad channel wav file from SD

    Hello evryone,

    I'm working on a project in wich I need to difuse quadriphonic sounds in a small room. I use a teensy 3.2 combinated with two audio shields. Everything works great, I use two stereo .wav files that are played simultaneously from the SD to the four outputs (pretty basic with built in examples). But I will soon need much more sounds and it would be better if I could use quad .wav files instead of stereo files. Is there any posibility to do this because playSdwav function seems only be able to play stereo files.

    Thanks in advance.

  2. #2
    Senior Member+ Theremingenieur's Avatar
    Join Date
    Feb 2014
    Location
    Colmar, France
    Posts
    2,187
    After looking at the source code of the play_sd_wav.h and play_sd_wav.cpp files of the audio library, I can tell you that it's hard coded in 2ch mode (allocating 2 channel buffers and so on). To work in 4ch mode, a new similar object, based on the 2ch variant would still have to be written.

  3. #3
    Okay, then I will work with stereo files. Thanks for your fast and precise answer.

Posting Permissions

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