Mercurial > audlegacy-plugins
comparison src/alsa/audio.c @ 2477:11f7c096f7e6
Do NOT use 'volatile' keyword!
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Sun, 30 Mar 2008 08:17:21 +0300 |
parents | bb55de702ffb |
children | e99d3e8653df |
comparison
equal
deleted
inserted
replaced
2476:809736eb47d9 | 2477:11f7c096f7e6 |
---|---|
51 | 51 |
52 /* Set/Get volume */ | 52 /* Set/Get volume */ |
53 static snd_mixer_elem_t *pcm_element; | 53 static snd_mixer_elem_t *pcm_element; |
54 static snd_mixer_t *mixer; | 54 static snd_mixer_t *mixer; |
55 | 55 |
56 static volatile gboolean going; | 56 static gboolean going, paused, mixer_start = TRUE; |
57 static gboolean paused, mixer_start = TRUE; | |
58 static gboolean prebuffer, remove_prebuffer; | 57 static gboolean prebuffer, remove_prebuffer; |
59 | 58 |
60 static gboolean alsa_can_pause; | 59 static gboolean alsa_can_pause; |
61 | 60 |
62 /* for audio thread */ | 61 /* for audio thread */ |
63 static GThread *audio_thread; /* audio loop thread */ | 62 static GThread *audio_thread; /* audio loop thread */ |
64 static int thread_buffer_size; /* size of intermediate buffer in bytes */ | 63 static int thread_buffer_size; /* size of intermediate buffer in bytes */ |
65 static char *thread_buffer; /* audio intermediate buffer */ | 64 static char *thread_buffer; /* audio intermediate buffer */ |
66 static int rd_index, wr_index; /* current read/write position in int-buffer */ | 65 static int rd_index, wr_index; /* current read/write position in int-buffer */ |
67 static gboolean pause_request; /* pause status currently requested */ | 66 static gboolean pause_request; /* pause status currently requested */ |
68 static volatile int flush_request; /* flush status (time) currently requested */ | 67 static int flush_request; /* flush status (time) currently requested */ |
69 static int prebuffer_size; | 68 static int prebuffer_size; |
70 GStaticMutex alsa_mutex = G_STATIC_MUTEX_INIT; | 69 GStaticMutex alsa_mutex = G_STATIC_MUTEX_INIT; |
71 | 70 |
72 static guint mixer_timeout; | 71 static guint mixer_timeout; |
73 | 72 |