Plays 16-bit, 32ksps, mono .wav files in the root directory of a microSD card.
CONSTRUCTION ZONE: This library is preliminary, major revisions pending, not for release.
Currently supports LMM and CMM memory models.
WAV file info sources, thanks to:
http://blogs.msdn.com/b/dawate/archive/2009/06/23/intro-to-audio-programming-part-2-demystifying-the-wav-format.aspx
http://www.sonicspot.com/guide/wavefiles.html
.
More...
#include "simpletools.h"
#include "wavplayer.h"
Functions |
void | play (void) |
void | wav_reader (void *par) |
void | audio_dac (void *par) |
void | spooler (void *par) |
void | wav_play (const char *wavFilename) |
| Play a .wav file.
|
int | wav_playing () |
| Check if wav file is currently playing.
|
void | wav_volume (int vol) |
| Set wav play volume 0 to 10. 0 is lowest, 10 is highest.
|
void | wav_stop (void) |
| Stop wav playback.
|
Variables |
char | bufferL [512] |
char | bufferH [512] |
volatile const char * | track |
FILE * | fp |
Detailed Description
Plays 16-bit, 32ksps, mono .wav files in the root directory of a microSD card.
CONSTRUCTION ZONE: This library is preliminary, major revisions pending, not for release.
Currently supports LMM and CMM memory models.
WAV file info sources, thanks to:
http://blogs.msdn.com/b/dawate/archive/2009/06/23/intro-to-audio-programming-part-2-demystifying-the-wav-format.aspx
http://www.sonicspot.com/guide/wavefiles.html
.
- Author
- Andy Lindsay
- Copyright
- Copyright (C) Parallax, Inc. 2012. All Rights MIT Licensed.
Function Documentation
void wav_play |
( |
const char * |
wavFilename | ) |
|
Play a .wav file.
- Parameters
-
wavFilename | )Pointer to character array with filename. |
Check if wav file is currently playing.
- Returns
- 1 if playing, 0 if not.
void wav_volume |
( |
int |
vol | ) |
|
Set wav play volume 0 to 10. 0 is lowest, 10 is highest.
- Parameters
-