mirror of
https://github.com/zeldaret/ss
synced 2026-09-01 09:32:58 -04:00
snd_WsdPlayer OK
This commit is contained in:
@@ -141,6 +141,23 @@ void WsdPlayer::InvalidateData(void const *start, void const *end)
|
||||
}
|
||||
}
|
||||
|
||||
bool WsdPlayer::ReadWsdDataInfo(WsdDataInfo *info) const
|
||||
{
|
||||
SoundThread::AutoLock lock;
|
||||
|
||||
WaveSoundInfo wsInfo;
|
||||
WaveSoundNoteInfo wsNoteInfo;
|
||||
WaveInfo waveInfo;
|
||||
bool result = mCallback->GetWaveSoundData(&wsInfo, &wsNoteInfo, &waveInfo, mWsdData, mWsdIndex, 0, mCallbackData);
|
||||
if (result) {
|
||||
info->loopFlag = waveInfo.loopFlag != false;
|
||||
info->sampleRate = waveInfo.sampleRate;
|
||||
info->loopStart = waveInfo.loopStart;
|
||||
info->loopEnd = waveInfo.loopEnd;
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
void WsdPlayer::FinishPlayer()
|
||||
{
|
||||
SoundThread::AutoLock lock;
|
||||
@@ -349,6 +366,9 @@ void WsdPlayer::UpdateChannel()
|
||||
mChannel->SetFxSend(bus, fxSend[i]);
|
||||
}
|
||||
|
||||
for (int i = 0; i < 4; i++)
|
||||
mChannel->SetRemoteOutVolume(i, GetRemoteOutVolume(i));
|
||||
|
||||
for (int i = 0; i < mVoiceOutCount; i++)
|
||||
mChannel->SetVoiceOutParam(i, GetVoiceOutParam(i));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user