| /NW4C-1.3.3/sources/libraries/snd/ |
| D | snd_BasicSound.cpp | 106 m_AmbientParam.volume = 1.0f; in Initialize() 446 ambientParam.volume = m_AmbientParam.volume; in Update() 467 m_AmbientParam.volume = ambientParam.volume; in Update() 553 f32 volume = 1.0f; in UpdateParam() local 554 volume *= m_InitVolume; in UpdateParam() 555 volume *= GetSoundPlayer()->GetVolume(); in UpdateParam() 556 volume *= m_ExtMoveVolume.GetValue(); in UpdateParam() 557 volume *= m_FadeVolume.GetValue(); in UpdateParam() 558 volume *= m_PauseFadeVolume.GetValue(); in UpdateParam() 559 volume *= m_AmbientParam.volume; in UpdateParam() [all …]
|
| D | snd_Sound3DEngine.cpp | 57 ambientParam->volume = 0.0f; in UpdateAmbientParam() 85 f32 volume; in UpdateAmbientParam() local 91 &volume, in UpdateAmbientParam() 97 ambientParam->volume = ut::Max( volume, ambientParam->volume ); in UpdateAmbientParam()
|
| D | snd_HardwareManager.cpp | 85 f32 volume = m_MasterVolume.GetValue(); in GetOutputVolume() local 86 volume *= m_VolumeForReset.GetValue(); in GetOutputVolume() 87 return volume; in GetOutputVolume() 90 void HardwareManager::SetMasterVolume( float volume, int fadeTimes ) in SetMasterVolume() argument 92 if ( volume < 0.0f ) volume = 0.0f; in SetMasterVolume() 94 volume, in SetMasterVolume()
|
| D | snd_SoundPlayer.cpp | 140 void SoundPlayer::SetVolume( float volume ) in SetVolume() argument 142 NW_ASSERT( volume >= 0.0f ); in SetVolume() 143 if ( volume < 0.0f ) volume = 0.0f; in SetVolume() 144 m_Volume = volume; in SetVolume()
|
| D | snd_SequenceTrack.cpp | 95 m_ParserTrackParam.volume.InitValue( 127 ); in InitParam() 240 m_ParserTrackParam.volume.Update(); in ParseNextTick() 385 register float volume in UpdateChannelParam() local 386 = m_ParserTrackParam.volume.GetValue() in UpdateChannelParam() 388 * m_pSequenceSoundPlayer->GetParserPlayerParam().volume in UpdateChannelParam() 390 volume = volume * volume * m_ExtVolume * m_pSequenceSoundPlayer->GetVolume(); in UpdateChannelParam() 441 channel->SetUserVolume( volume ); in UpdateChannelParam()
|
| D | snd_StreamSound.cpp | 194 void StreamSound::SetTrackVolume( unsigned long trackBitFlag, float volume, int frames ) in SetTrackVolume() argument 196 if ( volume < 0.0f ) volume = 0.0f; in SetTrackVolume() 206 m_TrackVolume[ trackNo ].SetTarget( volume, frames ); in SetTrackVolume()
|
| D | snd_BankFileReader.cpp | 134 info->volume = velocityRegion->GetVolume(); in ReadVelocityRegionInfo() 148 info->volume = regionParameter->volume; in ReadVelocityRegionInfo()
|
| D | snd_Sound3DCalculator.cpp | 258 f32 volume = MAX_VOLUME; in CalcVolumeAndPriorityImpl() local 265 volume = std::powf( decayRatio, ( actorDistance - maxVolumeDistance ) / unitDistance ); in CalcVolumeAndPriorityImpl() 268 … volume = 1.0f - ( actorDistance - maxVolumeDistance ) / unitDistance * ( 1.0f - decayRatio ); in CalcVolumeAndPriorityImpl() 269 if ( volume < 0.0f ) volume = 0.0f; in CalcVolumeAndPriorityImpl() 274 *volumePtr = volume; in CalcVolumeAndPriorityImpl() 275 *priorityPtr = - static_cast<int>( ( 1.0f - volume ) * maxPriorityReduction ); in CalcVolumeAndPriorityImpl()
|
| D | snd_StreamSoundFileReader.cpp | 94 pTrackInfo->volume = src->volume; in ReadStreamTrackInfo()
|
| D | snd_Channel.cpp | 206 …register f32 volume = m_InitVolume * m_UserVolume * m_SilenceVolume.GetValue() / SILENCE_VOLUME_MA… in Update() local 275 volume *= Util::CalcVolumeRatio( m_CurveAdshr.GetValue() ); in Update() 278 volume *= Util::CalcVolumeRatio( m_Lfo.GetValue() * 6.0f ); in Update() 286 volume *= Util::CalcVolumeRatio( decay ); in Update() 291 m_pVoice->SetVolume( volume ); in Update()
|
| D | snd_Voice.cpp | 249 inline u16 CalcMixVolume( f32 volume ) in CalcMixVolume() argument 251 if ( volume <= 0.f ) return 0UL; in CalcMixVolume() 256 static_cast<unsigned long>( volume * 0x8000 ) in CalcMixVolume() 734 void Voice::SetVolume( f32 volume ) in SetVolume() argument 736 if ( volume < VOLUME_MIN ) volume = VOLUME_MIN; in SetVolume() 738 if ( volume != m_Volume ) in SetVolume() 740 m_Volume = volume; in SetVolume() 1107 f32 volume = m_Volume; in CalcVe() local 1108 volume *= HardwareManager::GetInstance().GetOutputVolume(); in CalcVe() 1116 pChannel->SetVolume( volume ); in CalcVe()
|
| D | snd_WaveSoundPlayer.cpp | 481 float volume = 1.0f; in UpdateChannel() local 482 volume *= GetVolume(); in UpdateChannel() 545 m_pChannel->SetUserVolume( volume ); in UpdateChannel()
|
| /NW4C-1.3.3/include/nw/snd/ |
| D | snd_BasicSoundPlayer.h | 36 float volume; member 76 void SetVolume( float volume ) { m_PlayerParamSet.volume = volume; } in SetVolume() argument 86 float GetVolume() const { return m_PlayerParamSet.volume; } in GetVolume()
|
| D | snd_BasicSound.h | 43 f32 volume; member 55 : volume(1.0f), in SoundParam() 85 f32 volume; member 131 : volume(1.0f), in SoundAmbientParam() 193 f32 volume; member 197 SoundActorParam(): volume(1.0f),pitch(1.0f),pan(0.0f) {} in SoundActorParam() 200 volume = pitch = 1.0f; in Reset() 284 void SetInitialVolume( f32 volume ); 287 void SetVolume( f32 volume, int frames = 0 );
|
| D | snd_SoundActor.h | 274 void SetVolume( f32 volume ) { m_ActorParam.volume = volume; } in SetVolume() argument 285 f32 GetVolume() const { return m_ActorParam.volume; } in GetVolume()
|
| D | snd_StreamSoundHandle.h | 277 void SetVolume( f32 volume, int frames = 0 ) 279 if ( IsAttachedSound() ) m_pSound->SetVolume( volume, frames ); 498 void SetTrackVolume( u32 trackBitFlag, f32 volume, int frames = 0 ) 500 if ( IsAttachedSound() ) m_pSound->SetTrackVolume( trackBitFlag, volume, frames );
|
| D | snd_SequenceSoundHandle.h | 259 void SetVolume( f32 volume, int frames = 0 ) 261 if ( IsAttachedSound() ) m_pSound->SetVolume( volume, frames ); 765 void SetTrackVolume( u32 trackBitFlag, f32 volume ) in SetTrackVolume() argument 767 if ( IsAttachedSound() ) m_pSound->SetTrackVolume( trackBitFlag, volume ); in SetTrackVolume()
|
| D | snd_HardwareManager.h | 77 void SetAuxReturnVolume( AuxBus bus, f32 volume, int fadeTimes ) in SetAuxReturnVolume() argument 80 m_AuxUserVolume[ bus ].SetTarget( volume, fadeTimes ); in SetAuxReturnVolume() 102 void SetMasterVolume( float volume, int fadeTimes );
|
| D | snd_SequenceTrack.h | 83 MoveValue<u8,s16> volume; member 178 void SetVolume( float volume ) { m_ExtVolume = volume; } in SetVolume() argument
|
| D | snd_Channel.h | 134 void SetInitVolume( f32 volume ) { m_InitVolume = volume; } in SetInitVolume() argument 160 void SetUserVolume( f32 volume ) { m_UserVolume = volume; } in SetUserVolume() argument
|
| D | snd_WaveSoundHandle.h | 266 void SetVolume( f32 volume, int frames = 0 ) 268 if ( IsAttachedSound() ) m_pSound->SetVolume( volume, frames );
|
| D | snd_SoundHandle.h | 298 void SetVolume( float volume, int frames = 0 ) 300 if ( IsAttachedSound() ) m_pSound->SetVolume( volume, frames );
|
| D | snd_BankFileReader.h | 35 u8 volume; member
|
| /NW4C-1.3.3/sources/libraries/snd/platform/ |
| D | snd_HardwareManagerDSP.cppi | 210 f32 volume = 1.0f; 211 volume *= m_VolumeForReset.GetValue(); 212 volume = ut::Clamp( volume, 0.0f, 1.0f ); 214 nn::snd::SetMasterVolume( volume );
|
| D | snd_HardwareManagerAX.cppi | 183 f32 volume = 1.0f; 184 volume *= m_VolumeForReset.GetValue(); 186 volume = ut::Clamp( volume, 0.0f, 1.0f ); 188 AX_SetMasterVolume( static_cast<u16>(volume * 0x8000) );
|