Skip to content

Commit 1abe6c2

Browse files
authored
Merge pull request #84 from LouDnl/dev
Stoopid optimizations causing who knows what v0.6.4-BBbbbbettaaa
2 parents e4de4ac + d7e9df8 commit 1abe6c2

3 files changed

Lines changed: 7 additions & 7 deletions

File tree

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ set(PROJECT_NAME usbsidpico)
3030
set(PROJECT_MANUFACTURER "LouD")
3131
set(PRODUCT_STRING "USBSID-Pico")
3232
string(TIMESTAMP MAGIC_SMOKE "%Y%m%d") # Auto generate dated version
33-
set(PROJECT_VERSION "0.6.3-BETA.${MAGIC_SMOKE}") # Generate compile version
33+
set(PROJECT_VERSION "0.6.4-BETA.${MAGIC_SMOKE}") # Generate compile version
3434

3535
### Want a cookie?
3636
# NOTICE: ENABLING THESE DEBUGGING DEFINITIONS WILL HAVE SIGNIFICANT IMPACT AND WILL DELAY PLAYING!

src/config.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,15 +157,15 @@ bool
157157
stopping_emulator;
158158
#endif /* ONBOARD_EMULATOR */
159159
#if defined(ONBOARD_SIDPLAYER)
160-
extern bool
160+
extern volatile bool
161161
sidplayer_init,
162162
sidplayer_start,
163163
sidplayer_playing,
164164
sidplayer_stop,
165165
sidplayer_next,
166166
sidplayer_prev;
167167
/* SID player locals */
168-
volatile uint8_t * sidfile = NULL; /* Temporary buffer to store incoming data */
168+
uint8_t * sidfile = NULL; /* Temporary buffer to store incoming data */
169169
volatile int sidfile_size = 0;
170170
volatile char tuneno = 0;
171171
volatile bool is_prg = false; /* Default to SID file */

src/usbsid.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -138,9 +138,9 @@ volatile bool sidplayer_next = false;
138138
volatile bool sidplayer_prev = false;
139139

140140
extern uint8_t * sidfile; /* Temporary buffer to store incoming data */
141-
extern int sidfile_size;
142-
extern char tuneno;
143-
extern bool is_prg;
141+
extern volatile int sidfile_size;
142+
extern volatile char tuneno;
143+
extern volatile bool is_prg;
144144
extern void load_prg(uint8_t * binary_, size_t binsize_, bool loop);
145145
extern void load_sidtune(uint8_t * sidfile, int sidfilesize, char subt);
146146
extern void init_sidplayer(void);
@@ -945,7 +945,7 @@ int main()
945945
enable_sid(false);
946946

947947
/* Clear the dirt */
948-
#if !defined(ONBOARD_EMULATOR) || !defined(ONBOARD_SIDPLAYER)
948+
#if !defined(ONBOARD_EMULATOR) && !defined(ONBOARD_SIDPLAYER)
949949
memset(sid_memory, 0, sizeof sid_memory);
950950
#endif
951951

0 commit comments

Comments
 (0)