diff options
Diffstat (limited to 'apps/codecs/ay.c')
-rw-r--r-- | apps/codecs/ay.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/codecs/ay.c b/apps/codecs/ay.c index 48261fbfb4..914ffa9803 100644 --- a/apps/codecs/ay.c +++ b/apps/codecs/ay.c | |||
@@ -17,8 +17,8 @@ static struct Ay_Emu ay_emu; | |||
17 | static void set_codec_track(int t, int multitrack) { | 17 | static void set_codec_track(int t, int multitrack) { |
18 | Ay_start_track(&ay_emu, t); | 18 | Ay_start_track(&ay_emu, t); |
19 | 19 | ||
20 | /* for REPEAT_ONE we disable track limits */ | 20 | /* for loop mode we disable track limits */ |
21 | if (ci->global_settings->repeat_mode != REPEAT_ONE) { | 21 | if (!ci->loop_track()) { |
22 | Track_set_fade(&ay_emu, Track_get_length( &ay_emu, t ) - 4000, 4000); | 22 | Track_set_fade(&ay_emu, Track_get_length( &ay_emu, t ) - 4000, 4000); |
23 | } | 23 | } |
24 | if (multitrack) ci->set_elapsed(t*1000); /* t is track no to display */ | 24 | if (multitrack) ci->set_elapsed(t*1000); /* t is track no to display */ |
@@ -111,7 +111,7 @@ next_track: | |||
111 | ci->seek_complete(); | 111 | ci->seek_complete(); |
112 | 112 | ||
113 | /* Set fade again */ | 113 | /* Set fade again */ |
114 | if (ci->global_settings->repeat_mode != REPEAT_ONE) { | 114 | if (!ci->loop_track()) { |
115 | Track_set_fade(&ay_emu, Track_get_length( &ay_emu, track ) - 4000, 4000); | 115 | Track_set_fade(&ay_emu, Track_get_length( &ay_emu, track ) - 4000, 4000); |
116 | } | 116 | } |
117 | } | 117 | } |