This sample will play a ".wav" file of the USB root folder. Only RIFF format.

Fork of GR-PEACH_Audio_WAV by Daiki Kato

Audio sample for GR-PEACH or GR-LYCHEE. This sample will play a ".wav" file in the root of USB memory or SD card. If the USER_BUTTON0 is pressed, the next song is played.

The default setting of serial communication (baud rate etc.) in mbed is shown the following link.
Please refer to the link and change the settings of your PC terminal software.
The default value of baud rate in mbed is 9600, and this application uses baud rate 9600.
https://developer.mbed.org/teams/Renesas/wiki/GR-PEACH-Getting-Started#install-the-usb-serial-communication

Please refer to following link about Audio/Camera Shield.
https://developer.mbed.org/teams/Renesas/wiki/Audio_Camera-shield

For GR-PEACH:

FormatWav file (RIFF format) ".wav"
Channel2ch
Frequencies32kHz, 44.1kHz, 48kHz, 88.2kHz and 96kHz
Quantization bit rate16bits, 24bits and 32bits


For GR-LYCHEE:

FormatWav file (RIFF format) ".wav"
Channel2ch
Frequencies32kHz, 44.1kHz and 48kHz
Quantization bit rate16bits



  • Use USB0 of PEACH:
    /media/uploads/dkato/audio_wav_usb0.png

    If you use the USB0 as USB Host, please close GR-PEACH's JP3.
    /media/uploads/RyoheiHagimoto/usb.jpg

    Please select USB0 connector by the following configuration.

mbed_app.json

{
    "config": {
        "usb-host-ch":{
            "help": "(for GR-PEACH) 0:ch0 1:ch1",
            "value": "0"
        },
        "audio-camera-shield":{
            "help": "(for GR-PEACH) 0:not use 1:use",
            "value": "0"
        }
    }
}



  • Use USB1 of GR-PEACH:
    /media/uploads/dkato/audio_wav_usb1.png

    If you use the USB1 as USB Host, please close Audio/Camera Shield's JP1. /media/uploads/dkato/audiocamerashield_jp1.jpg

    Please select Audio/Camera Shield and USB1 connector by the following configuration.

mbed_app.json

{
    "config": {
        "usb-host-ch":{
            "help": "(for GR-PEACH) 0:ch0 1:ch1",
            "value": "1"
        },
        "audio-camera-shield":{
            "help": "(for GR-PEACH) 0:not use 1:use",
            "value": "1"
        }
    }
}

History

Support Mbed OS 5.10, replace Renesas libraries to mbed-gr-libs and optimize main.cpp and related files for supporting GR-LYCHEE too. default tip

2018-12-28, by 1050186 [Fri, 28 Dec 2018 02:46:43 +0000] rev 10

Support Mbed OS 5.10, replace Renesas libraries to mbed-gr-libs and optimize main.cpp and related files for supporting GR-LYCHEE too.


Introduced mbed OS 5 instead of mbed OS 2(Classic)

2017-03-22, by Osamu Nakamura [Wed, 22 Mar 2017 14:37:49 +0900] rev 9

Introduced mbed OS 5 instead of mbed OS 2(Classic)


Supports IAR.

2016-04-18, by dkato [Mon, 18 Apr 2016 09:17:50 +0000] rev 8

Supports IAR.


High-Resolution Audio

2015-08-18, by dkato [Tue, 18 Aug 2015 04:19:19 +0000] rev 7

High-Resolution Audio


modify dec_wav.h

2015-06-26, by dkato [Fri, 26 Jun 2015 07:35:16 +0000] rev 6

modify dec_wav.h


bug fixed

2015-06-24, by dkato [Wed, 24 Jun 2015 10:00:46 +0000] rev 5

bug fixed


improving readability

2015-06-24, by dkato [Wed, 24 Jun 2015 09:05:12 +0000] rev 4

improving readability


Repository change. (R_BSP.lib,TLV320_RBSP.lib)

2015-06-22, by dkato [Mon, 22 Jun 2015 09:37:24 +0000] rev 3

Repository change. (R_BSP.lib,TLV320_RBSP.lib)


Change the class name of the SSIF to R_BSP_Ssif.

2015-06-22, by dkato [Mon, 22 Jun 2015 09:18:35 +0000] rev 2

Change the class name of the SSIF to R_BSP_Ssif.


improving readability

2015-06-02, by dkato [Tue, 02 Jun 2015 10:19:02 +0000] rev 1

improving readability