Home
last modified time | relevance | path

Searched refs:volume (Results 1 – 25 of 57) sorted by relevance

123

/NW4C-2.0.3/sources/libraries/snd/
Dsnd_BasicSound.cpp107 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 …]
Dsnd_Sound3DEngine.cpp59 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()
Dsnd_HardwareManager.cpp87 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()
Dsnd_SoundPlayer.cpp142 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()
Dsnd_SequenceTrack.cpp97 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()
Dsnd_StreamSound.cpp196 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()
Dsnd_BankFileReader.cpp141 info->volume = velocityRegion->GetVolume(); in ReadVelocityRegionInfo()
155 info->volume = regionParameter->volume; in ReadVelocityRegionInfo()
Dsnd_Sound3DCalculator.cpp260 f32 volume = MAX_VOLUME; in CalcVolumeAndPriorityImpl() local
267 volume = std::powf( decayRatio, ( actorDistance - maxVolumeDistance ) / unitDistance ); in CalcVolumeAndPriorityImpl()
270volume = 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()
Dsnd_AnimEventPlayer.cpp57 if ( eventInfo.volume < 128 ) in InitParam()
59 m_Handle.SetVolume( static_cast<f32>( eventInfo.volume ) / 128.0f ); in InitParam()
Dsnd_StreamSoundFileReader.cpp96 pTrackInfo->volume = src->volume; in ReadStreamTrackInfo()
Dsnd_Channel.cpp208 …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()
Dsnd_Voice.cpp251 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()
Dsnd_WaveSoundPlayer.cpp483 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/
Dsnd_BasicSoundPlayer.h38 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()
Dsnd_BasicSound.h45 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 );
Dsnd_SoundActor.h282 void SetVolume( f32 volume ) { m_ActorParam.volume = volume; } in SetVolume() argument
293 f32 GetVolume() const { return m_ActorParam.volume; } in GetVolume()
Dsnd_StreamSoundHandle.h292 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 );
Dsnd_SequenceSoundHandle.h273 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()
Dsnd_SequenceTrack.h85 MoveValue<u8,s16> volume; member
180 void SetVolume( float volume ) { m_ExtVolume = volume; } in SetVolume() argument
Dsnd_HardwareManager.h83 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 );
Dsnd_Channel.h136 void SetInitVolume( f32 volume ) { m_InitVolume = volume; } in SetInitVolume() argument
162 void SetUserVolume( f32 volume ) { m_UserVolume = volume; } in SetUserVolume() argument
Dsnd_WaveSoundHandle.h279 void SetVolume( f32 volume, int frames = 0 )
281 if ( IsAttachedSound() ) m_pSound->SetVolume( volume, frames );
Dsnd_SoundHandle.h318 void SetVolume( float volume, int frames = 0 )
320 if ( IsAttachedSound() ) m_pSound->SetVolume( volume, frames );
/NW4C-2.0.3/sources/libraries/snd/platform/
Dsnd_HardwareManagerDSP.cppi212 f32 volume = 1.0f;
213 volume *= m_VolumeForReset.GetValue();
214 volume = ut::Clamp( volume, 0.0f, 1.0f );
216 nn::snd::SetMasterVolume( volume );
Dsnd_HardwareManagerAX.cppi185 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) );

123