summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Alc/alsa.c2
-rw-r--r--Alc/dsound.c2
-rw-r--r--Alc/oss.c2
-rw-r--r--Alc/wave.c2
4 files changed, 4 insertions, 4 deletions
diff --git a/Alc/alsa.c b/Alc/alsa.c
index 95a1cf6f..ea42b7fc 100644
--- a/Alc/alsa.c
+++ b/Alc/alsa.c
@@ -40,7 +40,7 @@ typedef struct {
ALvoid *buffer;
ALsizei size;
- int killNow;
+ volatile int killNow;
ALvoid *thread;
} alsa_data;
diff --git a/Alc/dsound.c b/Alc/dsound.c
index 06b8202b..7e5ea2cc 100644
--- a/Alc/dsound.c
+++ b/Alc/dsound.c
@@ -48,7 +48,7 @@ typedef struct {
LPDIRECTSOUNDBUFFER DSpbuffer;
LPDIRECTSOUNDBUFFER DSsbuffer;
- int killNow;
+ volatile int killNow;
ALvoid *thread;
} DSoundData;
diff --git a/Alc/oss.c b/Alc/oss.c
index ef1697d9..399d64bd 100644
--- a/Alc/oss.c
+++ b/Alc/oss.c
@@ -52,7 +52,7 @@ static char *oss_device_capture;
typedef struct {
int fd;
- int killNow;
+ volatile int killNow;
ALvoid *thread;
ALubyte *mix_data;
diff --git a/Alc/wave.c b/Alc/wave.c
index 19f2d9e1..747155b6 100644
--- a/Alc/wave.c
+++ b/Alc/wave.c
@@ -35,7 +35,7 @@ typedef struct {
ALvoid *buffer;
ALuint size;
- int killNow;
+ volatile int killNow;
ALvoid *thread;
} wave_data;