changeset 2477:11f7c096f7e6

Do NOT use 'volatile' keyword!
author Matti Hamalainen <ccr@tnsp.org>
date Sun, 30 Mar 2008 08:17:21 +0300
parents 809736eb47d9
children 89d4e09a8988 f88dd72c9156 5d929344ae0d
files src/alsa/audio.c
diffstat 1 files changed, 2 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/alsa/audio.c	Sun Mar 30 06:29:55 2008 +0300
+++ b/src/alsa/audio.c	Sun Mar 30 08:17:21 2008 +0300
@@ -53,8 +53,7 @@
 static snd_mixer_elem_t *pcm_element;
 static snd_mixer_t *mixer;
 
-static volatile gboolean going;
-static gboolean paused, mixer_start = TRUE;
+static gboolean going, paused, mixer_start = TRUE;
 static gboolean prebuffer, remove_prebuffer;
 
 static gboolean alsa_can_pause;
@@ -65,7 +64,7 @@
 static char *thread_buffer;	 /* audio intermediate buffer */
 static int rd_index, wr_index;	 /* current read/write position in int-buffer */
 static gboolean pause_request;	 /* pause status currently requested */
-static volatile int flush_request;	 /* flush status (time) currently requested */
+static int flush_request;	 /* flush status (time) currently requested */
 static int prebuffer_size;
 GStaticMutex alsa_mutex = G_STATIC_MUTEX_INIT;