- [FIX] Si no feia falta conversió de format, la música no apuntava correctament la duració al carregar

This commit is contained in:
2024-12-30 19:52:28 +01:00
parent 1b7fdbd230
commit 4fc5b47dc9
2 changed files with 5 additions and 1 deletions

View File

@@ -144,6 +144,7 @@ JA_Music_t *JA_LoadMusic(Uint8* buffer, Uint32 length)
free(music->output);
music->output = (short*)cvt.buf;
}
music->length = music->samples * chan * 2;
music->pos = 0;
music->state = JA_MUSIC_STOPPED;