diff options
Diffstat (limited to 'apps/codecs/ay.c')
-rw-r--r-- | apps/codecs/ay.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/codecs/ay.c b/apps/codecs/ay.c index 914ffa9803..b11ad84294 100644 --- a/apps/codecs/ay.c +++ b/apps/codecs/ay.c | |||
@@ -74,7 +74,7 @@ enum codec_status codec_run(void) | |||
74 | } | 74 | } |
75 | 75 | ||
76 | if ((err = Ay_load_mem(&ay_emu, buf, ci->filesize))) { | 76 | if ((err = Ay_load_mem(&ay_emu, buf, ci->filesize))) { |
77 | DEBUGF("AY: Ay_load failed (%s)\n", err); | 77 | DEBUGF("AY: Ay_load_mem failed (%s)\n", err); |
78 | return CODEC_ERROR; | 78 | return CODEC_ERROR; |
79 | } | 79 | } |
80 | 80 | ||
@@ -118,7 +118,7 @@ next_track: | |||
118 | 118 | ||
119 | /* Generate audio buffer */ | 119 | /* Generate audio buffer */ |
120 | err = Ay_play(&ay_emu, CHUNK_SIZE, samples); | 120 | err = Ay_play(&ay_emu, CHUNK_SIZE, samples); |
121 | if (err || ay_emu.track_ended) { | 121 | if (err || Track_ended(&ay_emu)) { |
122 | track++; | 122 | track++; |
123 | if (track >= ay_emu.track_count) break; | 123 | if (track >= ay_emu.track_count) break; |
124 | goto next_track; | 124 | goto next_track; |