This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TIVAWARE and Wav file playback

Other Parts Discussed in Thread: TM4C129ENCPDT

I am using tirtos_tivac_2_16_01_14 with TM4C129ENCPDT processor and wish to play WAV files using the PWM output.

I notice that Stellarisware had Sound drivers but the Tivaware doesn't seem to have these.

Are there any examples for wav file play back using TIVAWARE?

The only PWM examples seem to be a simple LED.

Regards

Barry

  • Hello Barry

    The wavfile decoder is there in utils, but not a direct example using PWM. I would suggest using the OPUS decoder and playback application note since the OPUS encoded stream is more size optimized than a raw WAV file.

    www.ti.com/.../spma076.pdf
  • Thanks for the information

    I found wavfile.c in the utils.

    It was actually spma076 that got me looking in the first place.

    Whilst the OPUS decoder is more optimised I want to avoid the user having the need to pass the file through another process before loading onto our hardware.

    I am storing the fat fs on a microSD card so space is not a major issue.

    Other than trying to extract the playback code from the OPUS source is there any example that shows feeding the WAV file data into the PWM?

  • Hello Barry

    No, we do not have a direct wav file player. The example where it is used in usb_host_audio examples where audio is played over a USB audion device.