Do not stop music when playing XA with immediate routine

This commit is contained in:
Lucas S. Vieira 2024-12-24 22:19:24 -03:00
parent b99c30ef04
commit 0c5864f693

View file

@ -180,6 +180,7 @@ void
sound_play_xa(const char *filename, int double_speed,
uint8_t channel, uint32_t loopback_sector)
{
// Stop sound if playing. We'll need the CD right now
sound_stop_xa();
CdlLOC loc = sound_find_xa(filename);
/* int sectorn = CdPosToInt(&loc); */
@ -196,9 +197,6 @@ sound_play_xa_immediate(
{
CdlFILTER filter;
// Stop sound if playing. We'll need the CD right now
sound_stop_xa();
/* int sectorn = CdPosToInt(&file.pos); */
/* int numsectors = (file.size + 2047) / 2048; */
/* printf("%s: Sector %d (size: %d => %d sectors).\n", */