fplayer
C99 Falcon Sequence (fseq) file player for Light-O-Rama hardware (like xLights)
|
Audio system interface. More...
#include <stdbool.h>
Go to the source code of this file.
Functions | |
void | Audio_exit (void) |
Exits the audio system and frees all resources. This function should be called before the program exits, or when the audio system is no longer needed. This function is safe to call even if the audio system has not been initialized. | |
bool | Audio_isPlaying (void) |
Checks the playback status of the audio system. | |
int | Audio_play (const char *fp) |
Attempts to play the audio file at the given file path. This function initializes the audio system if it has not been initialized yet. If the audio system is already playing audio, the current audio playback is stopped before the new audio file is played. | |
Audio system interface.
void Audio_exit | ( | void | ) |
Exits the audio system and frees all resources. This function should be called before the program exits, or when the audio system is no longer needed. This function is safe to call even if the audio system has not been initialized.
bool Audio_isPlaying | ( | void | ) |
Checks the playback status of the audio system.
int Audio_play | ( | const char * | fp | ) |
Attempts to play the audio file at the given file path. This function initializes the audio system if it has not been initialized yet. If the audio system is already playing audio, the current audio playback is stopped before the new audio file is played.
fp | the file path of the audio file to play |