mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-25 19:20:46 +00:00
- this should work but doesn't...
This commit is contained in:
parent
51a5fecc02
commit
16a6cd909a
1 changed files with 6 additions and 4 deletions
|
@ -39,7 +39,7 @@ static bool FillStream(void* buff, int len)
|
||||||
|
|
||||||
static playbackstatus MV_GetNextZMusicBlock(VoiceNode *voice)
|
static playbackstatus MV_GetNextZMusicBlock(VoiceNode *voice)
|
||||||
{
|
{
|
||||||
if (!FillStream(readbuffer, 32768))
|
if (!FillStream(readbuffer, 65536))
|
||||||
return NoMoreData;
|
return NoMoreData;
|
||||||
|
|
||||||
for (int i = 0; i <16384; i++)
|
for (int i = 0; i <16384; i++)
|
||||||
|
@ -48,7 +48,7 @@ static playbackstatus MV_GetNextZMusicBlock(VoiceNode *voice)
|
||||||
}
|
}
|
||||||
|
|
||||||
voice->sound = (const char*)buffer[whichbuffer];
|
voice->sound = (const char*)buffer[whichbuffer];
|
||||||
voice->length = 8192 << 16;
|
voice->length = 16384 << 16;
|
||||||
voice->position = 0;
|
voice->position = 0;
|
||||||
voice->BlockLength = 0;
|
voice->BlockLength = 0;
|
||||||
whichbuffer ^= 1;
|
whichbuffer ^= 1;
|
||||||
|
@ -70,6 +70,8 @@ void S_CreateStream()
|
||||||
return;// MV_SetErrorCode(MV_NoVoices);
|
return;// MV_SetErrorCode(MV_NoVoices);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
auto si = ZMusic_GetStreamInfo(mus_playing.handle);
|
||||||
|
|
||||||
voice->length = 0;
|
voice->length = 0;
|
||||||
voice->sound = 0;
|
voice->sound = 0;
|
||||||
|
|
||||||
|
@ -85,8 +87,8 @@ void S_CreateStream()
|
||||||
voice->callbackval = 0;
|
voice->callbackval = 0;
|
||||||
|
|
||||||
voice->bits = 16;
|
voice->bits = 16;
|
||||||
voice->channels = 2;
|
voice->channels = si.mNumChannels;
|
||||||
voice->SamplingRate = MV_MixRate;
|
voice->SamplingRate = si.mSampleRate;
|
||||||
|
|
||||||
voice->Paused = FALSE;
|
voice->Paused = FALSE;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue