summaryrefslogtreecommitdiff
path: root/apps/playback.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/playback.c')
-rw-r--r--apps/playback.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/apps/playback.c b/apps/playback.c
index b145823485..8fa94468fb 100644
--- a/apps/playback.c
+++ b/apps/playback.c
@@ -172,7 +172,7 @@ enum filling_state {
172#endif 172#endif
173 173
174bool audio_is_initialized = false; 174bool audio_is_initialized = false;
175static bool audio_thread_ready NOCACHEBSS_ATTR = false; 175static bool audio_thread_ready SHAREDBSS_ATTR = false;
176 176
177/* Variables are commented with the threads that use them: * 177/* Variables are commented with the threads that use them: *
178 * A=audio, C=codec, V=voice. A suffix of - indicates that * 178 * A=audio, C=codec, V=voice. A suffix of - indicates that *
@@ -180,9 +180,9 @@ static bool audio_thread_ready NOCACHEBSS_ATTR = false;
180/* TBD: Split out "audio" and "playback" (ie. calling) threads */ 180/* TBD: Split out "audio" and "playback" (ie. calling) threads */
181 181
182/* Main state control */ 182/* Main state control */
183static volatile bool audio_codec_loaded NOCACHEBSS_ATTR = false; /* Codec loaded? (C/A-) */ 183static volatile bool audio_codec_loaded SHAREDBSS_ATTR = false; /* Codec loaded? (C/A-) */
184static volatile bool playing NOCACHEBSS_ATTR = false; /* Is audio playing? (A) */ 184static volatile bool playing SHAREDBSS_ATTR = false; /* Is audio playing? (A) */
185static volatile bool paused NOCACHEBSS_ATTR = false; /* Is audio paused? (A/C-) */ 185static volatile bool paused SHAREDBSS_ATTR = false; /* Is audio paused? (A/C-) */
186 186
187/* Ring buffer where compressed audio and codecs are loaded */ 187/* Ring buffer where compressed audio and codecs are loaded */
188static unsigned char *filebuf = NULL; /* Start of buffer (A/C-) */ 188static unsigned char *filebuf = NULL; /* Start of buffer (A/C-) */
@@ -261,8 +261,8 @@ static size_t buffer_margin = 0; /* Buffer margin aka anti-skip buffer (A/C-) *
261static void set_filebuf_watermark(int seconds, size_t max); 261static void set_filebuf_watermark(int seconds, size_t max);
262 262
263/* Audio thread */ 263/* Audio thread */
264static struct event_queue audio_queue NOCACHEBSS_ATTR; 264static struct event_queue audio_queue SHAREDBSS_ATTR;
265static struct queue_sender_list audio_queue_sender_list NOCACHEBSS_ATTR; 265static struct queue_sender_list audio_queue_sender_list SHAREDBSS_ATTR;
266static long audio_stack[(DEFAULT_STACK_SIZE + 0x1000)/sizeof(long)]; 266static long audio_stack[(DEFAULT_STACK_SIZE + 0x1000)/sizeof(long)];
267static const char audio_thread_name[] = "audio"; 267static const char audio_thread_name[] = "audio";
268 268
@@ -273,7 +273,7 @@ static void audio_reset_buffer(void);
273 273
274/* Codec thread */ 274/* Codec thread */
275extern struct codec_api ci; 275extern struct codec_api ci;
276static struct event_queue codec_queue NOCACHEBSS_ATTR; 276static struct event_queue codec_queue SHAREDBSS_ATTR;
277static struct queue_sender_list codec_queue_sender_list; 277static struct queue_sender_list codec_queue_sender_list;
278static long codec_stack[(DEFAULT_STACK_SIZE + 0x2000)/sizeof(long)] 278static long codec_stack[(DEFAULT_STACK_SIZE + 0x2000)/sizeof(long)]
279IBSS_ATTR; 279IBSS_ATTR;
@@ -281,7 +281,7 @@ static const char codec_thread_name[] = "codec";
281struct thread_entry *codec_thread_p; /* For modifying thread priority later. */ 281struct thread_entry *codec_thread_p; /* For modifying thread priority later. */
282 282
283/* PCM buffer messaging */ 283/* PCM buffer messaging */
284static struct event_queue pcmbuf_queue NOCACHEBSS_ATTR; 284static struct event_queue pcmbuf_queue SHAREDBSS_ATTR;
285 285
286/* Function to be called by pcm buffer callbacks. 286/* Function to be called by pcm buffer callbacks.
287 * Permissible Context(s): Audio interrupt 287 * Permissible Context(s): Audio interrupt