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

@ -67,8 +67,8 @@ enum codec_status codec_run(void)
return CODEC_ERROR;
}
if ((err = Hes_load(&hes_emu, buf, ci->filesize))) {
DEBUGF("HES: Hes_load failed (%s)\n", err);
if ((err = Hes_load_mem(&hes_emu, buf, ci->filesize))) {
DEBUGF("HES: Hes_load_mem failed (%s)\n", err);
return CODEC_ERROR;
}
@ -95,7 +95,7 @@ next_track:
/* Generate audio buffer */
err = Hes_play(&hes_emu, CHUNK_SIZE, samples);
if (err || hes_emu.track_ended) {
if (err || Track_ended(&hes_emu)) {
track++;
if (track >= hes_emu.track_count) break;
goto next_track;