3

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?

  • 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 Jun 20 '12 at 16:11
  • I was thinking 16 bit stereo WAV, is that feasible? – Dog Ears Jun 20 '12 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 Jul 10 '12 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 Jul 19 '12 at 7:30
4

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, privacy policy and cookie policy

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