Add showControls, error handling, optimisations
Add a function to show button mappings using L + LEFT. Added preliminary error handling that will be improved later to determine playback issues. Music is not stopped when an unsupported file is selected. Some other minor modifications. TODO: Pause/play status does not show currently. Obtain error status of playback thread. Signed-off-by: Mahyar Koshkouei <deltabeard@users.noreply.github.com>
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
enum file_types {
|
||||
enum file_types
|
||||
{
|
||||
FILE_TYPE_ERROR = -1,
|
||||
FILE_TYPE_WAV,
|
||||
FILE_TYPE_FLAC,
|
||||
@@ -9,7 +10,12 @@ enum file_types {
|
||||
|
||||
void playFile(void* fileIn);
|
||||
|
||||
void togglePlayback(void);
|
||||
/**
|
||||
* Pause or play current file.
|
||||
*
|
||||
* \return True if paused.
|
||||
*/
|
||||
bool togglePlayback(void);
|
||||
|
||||
void stopPlayback(void);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user