uzewave library based on Uzeamp
More...
#include <stdbool.h>
#include <avr/io.h>
#include <stdlib.h>
#include <avr/pgmspace.h>
#include <uzebox.h>
#include <mmc.h>
#include <avr/interrupt.h>
#include "uzewav.h"
Detailed Description
uzewave library based on Uzeamp
- Version:
- 1.1
- Date:
- 2012
- Author:
- Hartmut Wendt info@hwhardsoft.de.vu <http://www.hwhardsoft.de.vu/>
-
Alec Bourque <http://www.uzebox.org>
- Copyright:
- GNU Public License V3
- Note:
- This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.
Function Documentation
convert the first 2 chars of WAV filename to a number
- Parameters:
-
- Return values:
-
0..98 | numeric values of two first chars in filename |
99 | first 2 chars are not numeric values |
init the FAT of the SD card
- Parameters:
-
- Returns:
- none
find valid files with extension of *char in the directory and store their first sector & filesize
- Parameters:
-
pointer | to string in flash with the file extension for example "GER" or "ENG" |
- Returns:
- count of found files
get the file sector from the SD card
- Parameters:
-
pointer | to a directory table entry |
- Returns:
- directory table
get current sector from SD card for playing
- Parameters:
-
- Returns:
- current sector
start the mixer for sound output
- Parameters:
-
LBA | (Logical Block Addressing) |
- Returns:
- none
stop the mixer for sound output
- Parameters:
-
- Returns:
- none
sound output - call once on each vsync
- Parameters:
-
- Returns:
- none
play automaticaly the wave files from queue
- Parameters:
-
- Returns:
- none
init the SD card for voice output
- Parameters:
-
- Return values:
-
0 | SD card init FAILED |
1 | FIRST READ FAILED |
2 | SD card init ok |
start playing of voice file
- Parameters:
-
- Returns:
- none
stop playing of voice file automaticaly at the end of voice file
- Parameters:
-
- Returns:
- none
stop playing of voice file before the end of voice file
- Parameters:
-
- Returns:
- none