diff options
author | Adam Simpkins <adam@adamsimpkins.net> | 2013-01-09 11:52:01 -0800 |
---|---|---|
committer | Lars-Dominik Braun <lars@6xq.net> | 2013-02-26 15:19:26 +0100 |
commit | 847ca4193e3fbc5b27285979888ab364bbf1792e (patch) | |
tree | 9bfce2cffe69ddaf74465d6445f589a4de68f42d /src/player.h | |
parent | efd4f393f0378865902c2138e614e9a5466c40ef (diff) | |
download | pianobar-847ca4193e3fbc5b27285979888ab364bbf1792e.tar.gz pianobar-847ca4193e3fbc5b27285979888ab364bbf1792e.tar.bz2 pianobar-847ca4193e3fbc5b27285979888ab364bbf1792e.zip |
Add play and pause commands
Add commands that always play and always pause, in addition to the
current toggle pause command.
Closes #342.
Diffstat (limited to 'src/player.h')
-rw-r--r-- | src/player.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/player.h b/src/player.h index ac6853c..d0eac22 100644 --- a/src/player.h +++ b/src/player.h @@ -1,5 +1,5 @@ /* -Copyright (c) 2008-2010 +Copyright (c) 2008-2013 Lars-Dominik Braun <lars@6xq.net> Permission is hereby granted, free of charge, to any person obtaining a copy @@ -49,7 +49,8 @@ THE SOFTWARE. #define BAR_PLAYER_BUFSIZE (WAITRESS_BUFFER_SIZE*2) struct audioPlayer { - char doQuit; + bool doQuit; /* protected by pauseMutex */ + bool doPause; /* protected by pauseMutex */ unsigned char channels; unsigned char aoError; @@ -102,6 +103,7 @@ struct audioPlayer { unsigned char *buffer; pthread_mutex_t pauseMutex; + pthread_cond_t pauseCond; WaitressHandle_t waith; }; |