summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--apps/playback.c10
-rw-r--r--firmware/asm/thread.h4
-rw-r--r--firmware/include/string-extra.h2
3 files changed, 11 insertions, 5 deletions
diff --git a/apps/playback.c b/apps/playback.c
index a284a1858d..9fe6da6d0e 100644
--- a/apps/playback.c
+++ b/apps/playback.c
@@ -58,6 +58,10 @@
58#include "pcm_mixer.h" 58#include "pcm_mixer.h"
59#endif 59#endif
60 60
61#ifdef SIMULATOR
62#include <strings.h>
63#endif
64
61/* TODO: The audio thread really is doing multitasking of acting like a 65/* TODO: The audio thread really is doing multitasking of acting like a
62 consumer and producer of tracks. It may be advantageous to better 66 consumer and producer of tracks. It may be advantageous to better
63 logically separate the two functions. I won't go that far just yet. */ 67 logically separate the two functions. I won't go that far just yet. */
@@ -1269,7 +1273,7 @@ static void playing_id3_sync(struct track_info *user_infop, struct audio_resume_
1269 } 1273 }
1270 id3->skip_resume_adjustments = skip_resume_adjustments; 1274 id3->skip_resume_adjustments = skip_resume_adjustments;
1271 } 1275 }
1272 1276
1273 id3_write(PLAYING_ID3, id3); 1277 id3_write(PLAYING_ID3, id3);
1274 1278
1275 if (!resume_info && id3) 1279 if (!resume_info && id3)
@@ -2761,7 +2765,7 @@ static void audio_on_codec_complete(int status)
2761 skip_pending = TRACK_SKIP_AUTO; 2765 skip_pending = TRACK_SKIP_AUTO;
2762 2766
2763 int id3_hid = 0; 2767 int id3_hid = 0;
2764 if (audio_can_change_track(&trackstat, &id3_hid)) 2768 if (audio_can_change_track(&trackstat, &id3_hid))
2765 { 2769 {
2766 audio_begin_track_change( 2770 audio_begin_track_change(
2767 single_mode_do_pause(id3_hid) 2771 single_mode_do_pause(id3_hid)
@@ -3243,7 +3247,7 @@ static void audio_on_ff_rewind(long time)
3243 bool finish_load = cur_info.audio_hid < 0; 3247 bool finish_load = cur_info.audio_hid < 0;
3244 if (finish_load) 3248 if (finish_load)
3245 { 3249 {
3246 // track is not yet loaded so simply update resume details for upcoming finish_load_track and quit 3250 // track is not yet loaded so simply update resume details for upcoming finish_load_track and quit
3247 playing_id3_sync(&cur_info, &(struct audio_resume_info){ time, 0 }, true); 3251 playing_id3_sync(&cur_info, &(struct audio_resume_info){ time, 0 }, true);
3248 return; 3252 return;
3249 } 3253 }
diff --git a/firmware/asm/thread.h b/firmware/asm/thread.h
index 5372be73ab..771338b406 100644
--- a/firmware/asm/thread.h
+++ b/firmware/asm/thread.h
@@ -46,7 +46,9 @@ struct regs
46 * give a decent amount of space and hope for the best... 46 * give a decent amount of space and hope for the best...
47 * FIXME: this isn't a great solution. */ 47 * FIXME: this isn't a great solution. */
48 #undef MINSIGSTKSZ 48 #undef MINSIGSTKSZ
49 #define MINSIGSTKSZ 16384 49 #endif
50 #ifndef MINSIGSTKSZ
51 #define MINSIGSTKSZ 16384
50 #endif 52 #endif
51 /* MINSIGSTKSZ for the OS to deliver the signal + 0x3000 for us */ 53 /* MINSIGSTKSZ for the OS to deliver the signal + 0x3000 for us */
52 #define DEFAULT_STACK_SIZE (MINSIGSTKSZ+0x3000) /* Bytes */ 54 #define DEFAULT_STACK_SIZE (MINSIGSTKSZ+0x3000) /* Bytes */
diff --git a/firmware/include/string-extra.h b/firmware/include/string-extra.h
index a9b34661a7..9572638e23 100644
--- a/firmware/include/string-extra.h
+++ b/firmware/include/string-extra.h
@@ -30,7 +30,7 @@
30#include "memset16.h" 30#include "memset16.h"
31 31
32#if defined(WIN32) || defined(APPLICATION) \ 32#if defined(WIN32) || defined(APPLICATION) \
33 || defined(__PCTOOL__) 33 || defined(__PCTOOL__) || defined(SIMULATOR)
34#ifndef mempcpy 34#ifndef mempcpy
35#define mempcpy __builtin_mempcpy 35#define mempcpy __builtin_mempcpy
36#endif 36#endif