mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-09 00:27:42 +00:00
Additional HUD work
This commit is contained in:
@@ -316,6 +316,17 @@ void CSfxManager::PitchBend(const CSfxHandle& handle, float pitch)
|
||||
}
|
||||
}
|
||||
|
||||
void CSfxManager::SfxVolume(const CSfxHandle& handle, float vol)
|
||||
{
|
||||
if (handle->IsEmitter())
|
||||
{
|
||||
CSfxWrapper& wrapper = static_cast<CSfxWrapper&>(*handle);
|
||||
wrapper.SetVolume(vol);
|
||||
}
|
||||
if (handle->IsPlaying())
|
||||
handle->GetVoice()->setVolume(vol);
|
||||
}
|
||||
|
||||
u16 CSfxManager::TranslateSFXID(u16 id)
|
||||
{
|
||||
if (mpSfxTranslationTable == nullptr)
|
||||
|
||||
Reference in New Issue
Block a user