diff options
Diffstat (limited to 'apps/playback.c')
-rw-r--r-- | apps/playback.c | 16 |
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 | ||
174 | bool audio_is_initialized = false; | 174 | bool audio_is_initialized = false; |
175 | static bool audio_thread_ready NOCACHEBSS_ATTR = false; | 175 | static 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 */ |
183 | static volatile bool audio_codec_loaded NOCACHEBSS_ATTR = false; /* Codec loaded? (C/A-) */ | 183 | static volatile bool audio_codec_loaded SHAREDBSS_ATTR = false; /* Codec loaded? (C/A-) */ |
184 | static volatile bool playing NOCACHEBSS_ATTR = false; /* Is audio playing? (A) */ | 184 | static volatile bool playing SHAREDBSS_ATTR = false; /* Is audio playing? (A) */ |
185 | static volatile bool paused NOCACHEBSS_ATTR = false; /* Is audio paused? (A/C-) */ | 185 | static 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 */ |
188 | static unsigned char *filebuf = NULL; /* Start of buffer (A/C-) */ | 188 | static 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-) * | |||
261 | static void set_filebuf_watermark(int seconds, size_t max); | 261 | static void set_filebuf_watermark(int seconds, size_t max); |
262 | 262 | ||
263 | /* Audio thread */ | 263 | /* Audio thread */ |
264 | static struct event_queue audio_queue NOCACHEBSS_ATTR; | 264 | static struct event_queue audio_queue SHAREDBSS_ATTR; |
265 | static struct queue_sender_list audio_queue_sender_list NOCACHEBSS_ATTR; | 265 | static struct queue_sender_list audio_queue_sender_list SHAREDBSS_ATTR; |
266 | static long audio_stack[(DEFAULT_STACK_SIZE + 0x1000)/sizeof(long)]; | 266 | static long audio_stack[(DEFAULT_STACK_SIZE + 0x1000)/sizeof(long)]; |
267 | static const char audio_thread_name[] = "audio"; | 267 | static 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 */ |
275 | extern struct codec_api ci; | 275 | extern struct codec_api ci; |
276 | static struct event_queue codec_queue NOCACHEBSS_ATTR; | 276 | static struct event_queue codec_queue SHAREDBSS_ATTR; |
277 | static struct queue_sender_list codec_queue_sender_list; | 277 | static struct queue_sender_list codec_queue_sender_list; |
278 | static long codec_stack[(DEFAULT_STACK_SIZE + 0x2000)/sizeof(long)] | 278 | static long codec_stack[(DEFAULT_STACK_SIZE + 0x2000)/sizeof(long)] |
279 | IBSS_ATTR; | 279 | IBSS_ATTR; |
@@ -281,7 +281,7 @@ static const char codec_thread_name[] = "codec"; | |||
281 | struct thread_entry *codec_thread_p; /* For modifying thread priority later. */ | 281 | struct thread_entry *codec_thread_p; /* For modifying thread priority later. */ |
282 | 282 | ||
283 | /* PCM buffer messaging */ | 283 | /* PCM buffer messaging */ |
284 | static struct event_queue pcmbuf_queue NOCACHEBSS_ATTR; | 284 | static 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 |