aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/audio.h6
-rw-r--r--src/player.h6
2 files changed, 6 insertions, 6 deletions
diff --git a/src/audio.h b/src/audio.h
index 917644f15..9a4bb10cf 100644
--- a/src/audio.h
+++ b/src/audio.h
@@ -28,9 +28,9 @@
#define AUDIO_AO_DRIVER_DEFAULT "default"
typedef struct _AudioFormat {
- mpd_sint8 channels;
- mpd_uint32 sampleRate;
- mpd_sint8 bits;
+ mpd_sint8 volatile channels;
+ mpd_uint32 volatile sampleRate;
+ mpd_sint8 volatile bits;
} AudioFormat;
void initAudioDriver();
diff --git a/src/player.h b/src/player.h
index 65ea07595..6e60dc274 100644
--- a/src/player.h
+++ b/src/player.h
@@ -51,13 +51,13 @@
#define PLAYER_QUEUE_LOCKED 1
typedef struct _PlayerControl {
- mpd_sint8 decodeType;
+ mpd_sint8 volatile decodeType;
mpd_sint8 volatile stop;
mpd_sint8 volatile play;
mpd_sint8 volatile pause;
mpd_sint8 volatile state;
mpd_sint8 volatile closeAudio;
- mpd_sint8 error;
+ mpd_sint8 volatile error;
mpd_uint16 bitRate;
mpd_sint8 bits;
mpd_sint8 channels;
@@ -72,7 +72,7 @@ typedef struct _PlayerControl {
mpd_sint8 volatile lockQueue;
mpd_sint8 volatile unlockQueue;
mpd_sint8 volatile seek;
- double seekWhere;
+ double volatile seekWhere;
float crossFade;
mpd_uint16 softwareVolume;
double totalPlayTime;