forked from len0rd/rockbox
Fix yellow.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29917 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
94257e5e19
commit
3071b2bde1
1 changed files with 3 additions and 3 deletions
|
|
@ -1220,7 +1220,7 @@ enum codec_status codec_main(enum codec_entry_call_reason reason)
|
||||||
/* this is called for each file to process */
|
/* this is called for each file to process */
|
||||||
enum codec_status codec_run(void)
|
enum codec_status codec_run(void)
|
||||||
{
|
{
|
||||||
unsigned int filesize;
|
size_t filesize;
|
||||||
unsigned short load_addr, init_addr, play_addr;
|
unsigned short load_addr, init_addr, play_addr;
|
||||||
unsigned char subSongsMax, subSong, song_speed;
|
unsigned char subSongsMax, subSong, song_speed;
|
||||||
unsigned char *sidfile = NULL;
|
unsigned char *sidfile = NULL;
|
||||||
|
|
@ -1243,7 +1243,7 @@ enum codec_status codec_run(void)
|
||||||
|
|
||||||
c64Init(44100);
|
c64Init(44100);
|
||||||
LoadSIDFromMemory(sidfile, &load_addr, &init_addr, &play_addr,
|
LoadSIDFromMemory(sidfile, &load_addr, &init_addr, &play_addr,
|
||||||
&subSongsMax, &subSong, &song_speed, filesize);
|
&subSongsMax, &subSong, &song_speed, (unsigned short)filesize);
|
||||||
sidPoke(24, 15); /* Turn on full volume */
|
sidPoke(24, 15); /* Turn on full volume */
|
||||||
cpuJSR(init_addr, subSong); /* Start the song initialize */
|
cpuJSR(init_addr, subSong); /* Start the song initialize */
|
||||||
|
|
||||||
|
|
@ -1264,7 +1264,7 @@ enum codec_status codec_run(void)
|
||||||
/* Start playing from scratch */
|
/* Start playing from scratch */
|
||||||
c64Init(44100);
|
c64Init(44100);
|
||||||
LoadSIDFromMemory(sidfile, &load_addr, &init_addr, &play_addr,
|
LoadSIDFromMemory(sidfile, &load_addr, &init_addr, &play_addr,
|
||||||
&subSongsMax, &subSong, &song_speed, filesize);
|
&subSongsMax, &subSong, &song_speed, (unsigned short)filesize);
|
||||||
sidPoke(24, 15); /* Turn on full volume */
|
sidPoke(24, 15); /* Turn on full volume */
|
||||||
subSong = param / 1000; /* Now use the current seek time in seconds as subsong */
|
subSong = param / 1000; /* Now use the current seek time in seconds as subsong */
|
||||||
cpuJSR(init_addr, subSong); /* Start the song initialize */
|
cpuJSR(init_addr, subSong); /* Start the song initialize */
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue