1
0
Fork 0
forked from len0rd/rockbox

Update libgme to Blargg's Game_Music_Emu 0.6-pre.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30397 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Andree Buschmann 2011-08-31 19:19:49 +00:00
parent d089e10403
commit 13cbade08a
68 changed files with 4113 additions and 4893 deletions

View file

@ -74,8 +74,8 @@ enum codec_status codec_run(void)
return CODEC_ERROR;
}
if ((err = Nsf_load(&nsf_emu, buf, ci->filesize))) {
DEBUGF("NSF: Nsf_load failed (%s)\n", err);
if ((err = Nsf_load_mem(&nsf_emu, buf, ci->filesize))) {
DEBUGF("NSF: Nsf_load_mem failed (%s)\n", err);
return CODEC_ERROR;
}
@ -116,7 +116,7 @@ next_track:
/* Generate audio buffer */
err = Nsf_play(&nsf_emu, CHUNK_SIZE, samples);
if (err || nsf_emu.track_ended) {
if (err || Track_ended(&nsf_emu)) {
track++;
if (track >= nsf_emu.track_count) break;
goto next_track;