[PATCH] Make OpenMPT audio play correctly
Thanks Alug
This commit is contained in:
parent
2ed4499d6d
commit
fd9fc0d12a
1 changed files with 3 additions and 1 deletions
|
|
@ -264,7 +264,9 @@ static boolean I_QueueNextSample(boolean unqueue)
|
|||
size_t count;
|
||||
#ifdef HAVE_OPENMPT
|
||||
if (openmpt_mhandle != NULL)
|
||||
count = openmpt_module_read_interleaved_stereo(openmpt_mhandle, SAMPLERATE, BUFFERSIZE, stream) * 2 * sizeof(INT16);
|
||||
{
|
||||
count = openmpt_module_read_interleaved_stereo(openmpt_mhandle, SAMPLERATE >> 1, BUFFERSIZE, stream) * 2 * sizeof(INT16); // HACK: SAMPLERATE >> 1 cause idk, this makes it play at the correct speed for some reason
|
||||
}
|
||||
else
|
||||
#endif
|
||||
if (musicstream != NULL)
|
||||
|
|
|
|||
Loading…
Reference in a new issue