wavplayer library  v0.91
Plays 16-bit, 32 ksps, mono wav files
wavplayer.h
Go to the documentation of this file.
1 
33 #ifndef WAVPLAYER_H
34 #define WAVPLAYER_H
35 
36 #if defined(__cplusplus)
37 extern "C" {
38 #endif
39 
45 void wav_play(const char* wavFilename);
46 
52 int wav_playing();
53 
59 void wav_volume(int vol);
60 
67 void wav_stop(void);
68 
76 void wav_close(void);
77 
78 
89 void wav_set_pins(int left_pin, int right_pin);
90 
91 #if defined(__cplusplus)
92 }
93 #endif
94 /* __cplusplus */
95 #endif
96 /* WAVPLAYER_H */
97 
int wav_playing()
Check if wav file is currently playing.
Definition: wavplayer.c:69
void wav_volume(int vol)
Set wav play volume 0 to 10. 0 is lowest, 10 is highest.
Definition: wavplayer.c:75
void wav_play(const char *wavFilename)
Play a .wav file.
Definition: wavplayer.c:58
void wav_close(void)
Stop wav file reading and close audio output. Only recommended if your application needs to recover t...
Definition: wavplayer.c:102
void wav_stop(void)
Stop wav file reading but leave audio output open so that you can play another track without a click ...
Definition: wavplayer.c:90
void wav_set_pins(int left_pin, int right_pin)
Change the default pins used by the wav player library. Only call before calling wav_play for the fir...
Definition: wavplayer.c:212