| Kinetis SDK Demo Applications User Guide 1.0.0-beta Freescale Semiconductor, Inc.

- Main Page
- Related Pages
- Demos

All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
SAI Play Sound Introduction
SAI Play Sound

Introduction and the function/definition comments of this demo. More...

### SAI Play Sound Introduction

# Overview

The SAI_PLAYSOUND demo project is a simple demonstration program based on KSDK SAI peripheral driver. It demonstrates the performance and features of the SAI peripheral driver. For this demo, SAI module is the controller and Freescale Low power Stereo Codec SGTL5000 is the codec. SAI_PLAYSOUND demo features include:

1. Playing audio through TWR-SGTL and volume adjust
2. Support for a different type of Windows PCM wave file format
3. Use of a shell system to demonstrate features
4. Decoding and displaying wave file information on the shell

# Function Description

These are the three functions set in playsound.h
The prototypes for the three functions are:
void PLAYSOUND_Init(void);
status_t PLAYSOUND_GetWaveFileInfo(uint8_t* pBuffer, wave_file_t *pWave);
status_t PLAYSOUND_Play(APP_GET_DATA_FUNC fpAppGetData);

See the playsound.h file for more information about the functions.