diff options
Diffstat (limited to 'apps')
-rw-r--r-- | apps/codecs/sid.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/codecs/sid.c b/apps/codecs/sid.c index 291b9ca6f3..a9ca457fb3 100644 --- a/apps/codecs/sid.c +++ b/apps/codecs/sid.c | |||
@@ -1220,7 +1220,7 @@ enum codec_status codec_main(enum codec_entry_call_reason reason) | |||
1220 | /* this is called for each file to process */ | 1220 | /* this is called for each file to process */ |
1221 | enum codec_status codec_run(void) | 1221 | enum codec_status codec_run(void) |
1222 | { | 1222 | { |
1223 | unsigned int filesize; | 1223 | size_t filesize; |
1224 | unsigned short load_addr, init_addr, play_addr; | 1224 | unsigned short load_addr, init_addr, play_addr; |
1225 | unsigned char subSongsMax, subSong, song_speed; | 1225 | unsigned char subSongsMax, subSong, song_speed; |
1226 | unsigned char *sidfile = NULL; | 1226 | unsigned char *sidfile = NULL; |
@@ -1243,7 +1243,7 @@ enum codec_status codec_run(void) | |||
1243 | 1243 | ||
1244 | c64Init(44100); | 1244 | c64Init(44100); |
1245 | LoadSIDFromMemory(sidfile, &load_addr, &init_addr, &play_addr, | 1245 | LoadSIDFromMemory(sidfile, &load_addr, &init_addr, &play_addr, |
1246 | &subSongsMax, &subSong, &song_speed, filesize); | 1246 | &subSongsMax, &subSong, &song_speed, (unsigned short)filesize); |
1247 | sidPoke(24, 15); /* Turn on full volume */ | 1247 | sidPoke(24, 15); /* Turn on full volume */ |
1248 | cpuJSR(init_addr, subSong); /* Start the song initialize */ | 1248 | cpuJSR(init_addr, subSong); /* Start the song initialize */ |
1249 | 1249 | ||
@@ -1264,7 +1264,7 @@ enum codec_status codec_run(void) | |||
1264 | /* Start playing from scratch */ | 1264 | /* Start playing from scratch */ |
1265 | c64Init(44100); | 1265 | c64Init(44100); |
1266 | LoadSIDFromMemory(sidfile, &load_addr, &init_addr, &play_addr, | 1266 | LoadSIDFromMemory(sidfile, &load_addr, &init_addr, &play_addr, |
1267 | &subSongsMax, &subSong, &song_speed, filesize); | 1267 | &subSongsMax, &subSong, &song_speed, (unsigned short)filesize); |
1268 | sidPoke(24, 15); /* Turn on full volume */ | 1268 | sidPoke(24, 15); /* Turn on full volume */ |
1269 | subSong = param / 1000; /* Now use the current seek time in seconds as subsong */ | 1269 | subSong = param / 1000; /* Now use the current seek time in seconds as subsong */ |
1270 | cpuJSR(init_addr, subSong); /* Start the song initialize */ | 1270 | cpuJSR(init_addr, subSong); /* Start the song initialize */ |