-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathaudio.h
More file actions
33 lines (26 loc) · 694 Bytes
/
audio.h
File metadata and controls
33 lines (26 loc) · 694 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/**
* @file audio.h
* @brief Functions for playing audio with the PT8211
*/
#ifndef AUDIO_H_
#define AUDIO_H_
#include <Arduino.h>
/**
* @brief Setup audio output (Note: This is required)
*/
void setupAudio(void);
/**
* @brief Get the length of WAV file associated with the loaded show in milliseconds
*
* @return Returns the length of the loaded audio file in milliseconds, 0 ... 4294967295
*/
uint32_t getAudioMS(void);
/**
* @brief Play WAV file associated with the loaded show
*/
void playAudio(void);
/**
* @brief Stop playing WAV file
*/
void stopAudio(void);
#endif // AUDIO_H_