Skip to content

Commit 255e1f4

Browse files
committed
Also half loopstart/loopend for GDM 16-bit samples.
1 parent 01e4f01 commit 255e1f4

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/load_gdm.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -308,6 +308,8 @@ BOOL CSoundFile::ReadGDM(const BYTE *lpStream, DWORD dwMemLength)
308308
// Due to a 2GDM bug, the sample size is halved.
309309
// (Note BWSB doesn't even check for these anyway.)
310310
len /= 2;
311+
loopstart /= 2;
312+
loopend /= 2;
311313
}
312314
else
313315
sflags[nins] = RS_PCM8U;

0 commit comments

Comments
 (0)