5

I would then to write the PCM data directly to the I2S interface.

Is there an existing API that would allow me to read an audio file and get at the PCM digital data?

4
  • 1
    What format? e.g. for uncompressed 16-bit mono WAVs, skip the first 44 bytes then feed the rest out the interface verbatim...
    – moonshadow
    Commented Jun 20, 2012 at 16:11
  • I was thinking 16 bit stereo WAV, is that feasible?
    – Dog Ears
    Commented Jun 20, 2012 at 16:13
  • At first glance this question doesn't look like it's quite on-topic for the site. Could someone explain its application to Raspberry Pi?
    – ramblinjan
    Commented Jul 10, 2012 at 18:29
  • @jandjorgensen - There's a lot of interest in utilising the Pi in audio projects, hopefully there will be many more questions tagged audio and attracting at least some of that community here would be a good thing, so don't scare them away :)
    – Dog Ears
    Commented Jul 19, 2012 at 7:30

1 Answer 1

5

Check out the answers to this SO question; libsndfile seems to be favourite.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.