| /NW4C-2.0.3/sources/libraries/snd/ |
| D | snd_BasicSound.cpp | 107 m_AmbientParam.volume = 1.0f; in Initialize() 453 ambientParam.volume = m_AmbientParam.volume; in Update() 474 m_AmbientParam.volume = ambientParam.volume; in Update() 560 f32 volume = 1.0f; in UpdateParam() local 561 volume *= m_InitVolume; in UpdateParam() 562 volume *= GetSoundPlayer()->GetVolume(); in UpdateParam() 563 volume *= m_ExtMoveVolume.GetValue(); in UpdateParam() 564 volume *= m_FadeVolume.GetValue(); in UpdateParam() 565 volume *= m_PauseFadeVolume.GetValue(); in UpdateParam() 566 volume *= m_AmbientParam.volume; in UpdateParam() [all …]
|
| D | snd_Sound3DEngine.cpp | 59 ambientParam->volume = 0.0f; in UpdateAmbientParam() 87 f32 volume; in UpdateAmbientParam() local 93 &volume, in UpdateAmbientParam() 99 ambientParam->volume = ut::Max( volume, ambientParam->volume ); in UpdateAmbientParam()
|
| D | snd_HardwareManager.cpp | 87 f32 volume = m_MasterVolume.GetValue(); in GetOutputVolume() local 88 volume *= m_VolumeForReset.GetValue(); in GetOutputVolume() 89 return volume; in GetOutputVolume() 92 void HardwareManager::SetMasterVolume( float volume, int fadeTimes ) in SetMasterVolume() argument 94 if ( volume < 0.0f ) volume = 0.0f; in SetMasterVolume() 96 volume, in SetMasterVolume()
|
| D | snd_SoundPlayer.cpp | 142 void SoundPlayer::SetVolume( float volume ) in SetVolume() argument 144 NW_ASSERT( volume >= 0.0f ); in SetVolume() 145 if ( volume < 0.0f ) volume = 0.0f; in SetVolume() 146 m_Volume = volume; in SetVolume()
|
| D | snd_SequenceTrack.cpp | 97 m_ParserTrackParam.volume.InitValue( 127 ); in InitParam() 242 m_ParserTrackParam.volume.Update(); in ParseNextTick() 387 register float volume in UpdateChannelParam() local 388 = m_ParserTrackParam.volume.GetValue() in UpdateChannelParam() 390 * m_pSequenceSoundPlayer->GetParserPlayerParam().volume in UpdateChannelParam() 392 volume = volume * volume * m_ExtVolume * m_pSequenceSoundPlayer->GetVolume(); in UpdateChannelParam() 443 channel->SetUserVolume( volume ); in UpdateChannelParam()
|
| D | snd_StreamSound.cpp | 196 void StreamSound::SetTrackVolume( unsigned long trackBitFlag, float volume, int frames ) in SetTrackVolume() argument 198 if ( volume < 0.0f ) volume = 0.0f; in SetTrackVolume() 208 m_TrackVolume[ trackNo ].SetTarget( volume, frames ); in SetTrackVolume()
|
| D | snd_BankFileReader.cpp | 141 info->volume = velocityRegion->GetVolume(); in ReadVelocityRegionInfo() 155 info->volume = regionParameter->volume; in ReadVelocityRegionInfo()
|
| D | snd_Sound3DCalculator.cpp | 260 f32 volume = MAX_VOLUME; in CalcVolumeAndPriorityImpl() local 267 volume = std::powf( decayRatio, ( actorDistance - maxVolumeDistance ) / unitDistance ); in CalcVolumeAndPriorityImpl() 270 … volume = 1.0f - ( actorDistance - maxVolumeDistance ) / unitDistance * ( 1.0f - decayRatio ); in CalcVolumeAndPriorityImpl() 271 if ( volume < 0.0f ) volume = 0.0f; in CalcVolumeAndPriorityImpl() 276 *volumePtr = volume; in CalcVolumeAndPriorityImpl() 277 *priorityPtr = - static_cast<int>( ( 1.0f - volume ) * maxPriorityReduction ); in CalcVolumeAndPriorityImpl()
|
| D | snd_AnimEventPlayer.cpp | 57 if ( eventInfo.volume < 128 ) in InitParam() 59 m_Handle.SetVolume( static_cast<f32>( eventInfo.volume ) / 128.0f ); in InitParam()
|
| D | snd_StreamSoundFileReader.cpp | 96 pTrackInfo->volume = src->volume; in ReadStreamTrackInfo()
|
| D | snd_Channel.cpp | 208 …register f32 volume = m_InitVolume * m_UserVolume * m_SilenceVolume.GetValue() / SILENCE_VOLUME_MA… in Update() local 277 volume *= Util::CalcVolumeRatio( m_CurveAdshr.GetValue() ); in Update() 280 volume *= Util::CalcVolumeRatio( m_Lfo.GetValue() * 6.0f ); in Update() 288 volume *= Util::CalcVolumeRatio( decay ); in Update() 293 m_pVoice->SetVolume( volume ); in Update()
|
| D | snd_Voice.cpp | 251 inline u16 CalcMixVolume( f32 volume ) in CalcMixVolume() argument 253 if ( volume <= 0.f ) return 0UL; in CalcMixVolume() 258 static_cast<unsigned long>( volume * 0x8000 ) in CalcMixVolume() 736 void Voice::SetVolume( f32 volume ) in SetVolume() argument 738 if ( volume < VOLUME_MIN ) volume = VOLUME_MIN; in SetVolume() 740 if ( volume != m_Volume ) in SetVolume() 742 m_Volume = volume; in SetVolume() 1109 f32 volume = m_Volume; in CalcVe() local 1110 volume *= HardwareManager::GetInstance().GetOutputVolume(); in CalcVe() 1118 pChannel->SetVolume( volume ); in CalcVe()
|
| D | snd_WaveSoundPlayer.cpp | 483 float volume = 1.0f; in UpdateChannel() local 484 volume *= GetVolume(); in UpdateChannel() 547 m_pChannel->SetUserVolume( volume ); in UpdateChannel()
|
| /NW4C-2.0.3/include/nw/snd/ |
| D | snd_BasicSoundPlayer.h | 38 float volume; member 78 void SetVolume( float volume ) { m_PlayerParamSet.volume = volume; } in SetVolume() argument 88 float GetVolume() const { return m_PlayerParamSet.volume; } in GetVolume()
|
| D | snd_BasicSound.h | 45 f32 volume; member 57 : volume(1.0f), in SoundParam() 104 f32 volume; member 178 : volume(1.0f), in SoundAmbientParam() 195 f32 volume; member 199 SoundActorParam(): volume(1.0f),pitch(1.0f),pan(0.0f) {} in SoundActorParam() 202 volume = pitch = 1.0f; in Reset() 286 void SetInitialVolume( f32 volume ); 289 void SetVolume( f32 volume, int frames = 0 );
|
| D | snd_SoundActor.h | 282 void SetVolume( f32 volume ) { m_ActorParam.volume = volume; } in SetVolume() argument 293 f32 GetVolume() const { return m_ActorParam.volume; } in GetVolume()
|
| D | snd_StreamSoundHandle.h | 292 void SetVolume( f32 volume, int frames = 0 ) 294 if ( IsAttachedSound() ) m_pSound->SetVolume( volume, frames ); 516 void SetTrackVolume( u32 trackBitFlag, f32 volume, int frames = 0 ) 518 if ( IsAttachedSound() ) m_pSound->SetTrackVolume( trackBitFlag, volume, frames );
|
| D | snd_SequenceSoundHandle.h | 273 void SetVolume( f32 volume, int frames = 0 ) 275 if ( IsAttachedSound() ) m_pSound->SetVolume( volume, frames ); 779 void SetTrackVolume( u32 trackBitFlag, f32 volume ) in SetTrackVolume() argument 781 if ( IsAttachedSound() ) m_pSound->SetTrackVolume( trackBitFlag, volume ); in SetTrackVolume()
|
| D | snd_SequenceTrack.h | 85 MoveValue<u8,s16> volume; member 180 void SetVolume( float volume ) { m_ExtVolume = volume; } in SetVolume() argument
|
| D | snd_HardwareManager.h | 83 void SetAuxReturnVolume( AuxBus bus, f32 volume, int fadeTimes ) in SetAuxReturnVolume() argument 86 m_AuxUserVolume[ bus ].SetTarget( volume, fadeTimes ); in SetAuxReturnVolume() 108 void SetMasterVolume( float volume, int fadeTimes );
|
| D | snd_Channel.h | 136 void SetInitVolume( f32 volume ) { m_InitVolume = volume; } in SetInitVolume() argument 162 void SetUserVolume( f32 volume ) { m_UserVolume = volume; } in SetUserVolume() argument
|
| D | snd_WaveSoundHandle.h | 279 void SetVolume( f32 volume, int frames = 0 ) 281 if ( IsAttachedSound() ) m_pSound->SetVolume( volume, frames );
|
| D | snd_SoundHandle.h | 318 void SetVolume( float volume, int frames = 0 ) 320 if ( IsAttachedSound() ) m_pSound->SetVolume( volume, frames );
|
| /NW4C-2.0.3/sources/libraries/snd/platform/ |
| D | snd_HardwareManagerDSP.cppi | 212 f32 volume = 1.0f; 213 volume *= m_VolumeForReset.GetValue(); 214 volume = ut::Clamp( volume, 0.0f, 1.0f ); 216 nn::snd::SetMasterVolume( volume );
|
| D | snd_HardwareManagerAX.cppi | 185 f32 volume = 1.0f; 186 volume *= m_VolumeForReset.GetValue(); 188 volume = ut::Clamp( volume, 0.0f, 1.0f ); 190 AX_SetMasterVolume( static_cast<u16>(volume * 0x8000) );
|