Atmel Software Framework

wav_player.c File Reference

WAV player.

Copyright (c) 2011 Atmel Corporation. All rights reserved.

#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include "compiler.h"
#include "com_task.h"
#include "audio_interface.h"
#include "file.h"
#include "audio_mixer.h"
#include "conf_audio_player.h"
#include "wavdecode.h"


#define IN_BUFFER_SIZE   512


bool play_wav (const char *filename, bool verbose)
 This is the function called by ushell_task() to perform all the WAV decoding. More...
bool wav_file_get_data (struct wav_info_t *wav_info)
 Callback from WAV decoder. More...
uint32_t wav_get_file_duration (void)


uint32_t g_player_currentTime_ms
uint32_t g_player_duration
Ai_player_flag_t g_player_flag
static uint32_t wav_file_duration_s = 0

#define IN_BUFFER_SIZE   512

Size of the input buffer in bytes. This buffer is used to read the data from the file itself and will be passed directly to the WAV decoding function.

Referenced by play_wav(), and wav_file_get_data().

uint32_t wav_get_file_duration ( void  )

References wav_file_duration_s.

uint32_t g_player_currentTime_ms

Referenced by header(), and play_wav().

uint32_t g_player_duration

Referenced by header(), and play_wav().

Ai_player_flag_t g_player_flag
uint32_t wav_file_duration_s = 0

Referenced by play_wav(), and wav_get_file_duration().