Skip to content

Commit 647b881

Browse files
committed
Update description of USBAudio wav audio player example
SD card driver is now included as a component.
1 parent 45e747b commit 647b881

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/api/usb/Mbed_USB_WAV_Audio_Player/Mbed_USB_WAV_Audio_Player.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,9 @@ The following steps demonstrate the setup and use of the Mbed WAV audio player:
5454

5555
1. Add the [sd-driver](https://github.com/ARMmbed/sd-driver) and [AudioPlayer](https://github.com/c1728p9/AudioPlayer) libraries to the new Mbed project directory:
5656

57-
`mbed add https://github.com/ARMmbed/sd-driver`
5857
`mbed add https://github.com/c1728p9/AudioPlayer`
59-
58+
59+
1. Ensure that `SD` component is available for your device in `targets.json` or `mbed_app.json`.
6060
1. Copy and paste the [example code](../tutorials/usb-wav-audio-player.html#example-wav-file) into `main.cpp`.
6161
1. Make sure the SPI pins for the SDBlockDevice object are updated and correct for your board. For example, in the example below, line 10 sets up SPI for the SDBlockDevice for the NXP K64F Mbed board.
6262
1. Load WAV file(s) onto SD card. The example below uses a public domain WAV file called "Bach-minuet-in-g.wav" (attached below for download) that is inside a "songs" directory on the SD card. It is important that the WAV file be PCM signed 16-bit little endian, or else it will not play becaues USBAudio does not support any other WAV formats. The WAV file can have any sampling rate and can have any number of channels. You can use [Online-convert](https://audio.online-convert.com/convert-to-wav) to achieve WAV files with different formats from any source audio file. The file "Bach-minuet-in-g.wav" is already in the correct format.

0 commit comments

Comments
 (0)