Home
last modified time | relevance | path

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

123

/NW4C-1.3.3/sources/libraries/snd/
Dsnd_BasicSound.cpp106 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 …]
Dsnd_Sound3DEngine.cpp57 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()
Dsnd_HardwareManager.cpp85 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()
Dsnd_SoundPlayer.cpp140 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()
Dsnd_SequenceTrack.cpp95 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()
Dsnd_StreamSound.cpp194 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()
Dsnd_BankFileReader.cpp134 info->volume = velocityRegion->GetVolume(); in ReadVelocityRegionInfo()
148 info->volume = regionParameter->volume; in ReadVelocityRegionInfo()
Dsnd_Sound3DCalculator.cpp258 f32 volume = MAX_VOLUME; in CalcVolumeAndPriorityImpl() local
265 volume = std::powf( decayRatio, ( actorDistance - maxVolumeDistance ) / unitDistance ); in CalcVolumeAndPriorityImpl()
268volume = 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()
Dsnd_StreamSoundFileReader.cpp94 pTrackInfo->volume = src->volume; in ReadStreamTrackInfo()
Dsnd_Channel.cpp206 …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()
Dsnd_Voice.cpp249 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()
Dsnd_WaveSoundPlayer.cpp481 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/
Dsnd_BasicSoundPlayer.h36 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()
Dsnd_BasicSound.h43 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 );
Dsnd_SoundActor.h274 void SetVolume( f32 volume ) { m_ActorParam.volume = volume; } in SetVolume() argument
285 f32 GetVolume() const { return m_ActorParam.volume; } in GetVolume()
Dsnd_StreamSoundHandle.h277 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 );
Dsnd_SequenceSoundHandle.h259 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()
Dsnd_HardwareManager.h77 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 );
Dsnd_SequenceTrack.h83 MoveValue<u8,s16> volume; member
178 void SetVolume( float volume ) { m_ExtVolume = volume; } in SetVolume() argument
Dsnd_Channel.h134 void SetInitVolume( f32 volume ) { m_InitVolume = volume; } in SetInitVolume() argument
160 void SetUserVolume( f32 volume ) { m_UserVolume = volume; } in SetUserVolume() argument
Dsnd_WaveSoundHandle.h266 void SetVolume( f32 volume, int frames = 0 )
268 if ( IsAttachedSound() ) m_pSound->SetVolume( volume, frames );
Dsnd_SoundHandle.h298 void SetVolume( float volume, int frames = 0 )
300 if ( IsAttachedSound() ) m_pSound->SetVolume( volume, frames );
Dsnd_BankFileReader.h35 u8 volume; member
/NW4C-1.3.3/sources/libraries/snd/platform/
Dsnd_HardwareManagerDSP.cppi210 f32 volume = 1.0f;
211 volume *= m_VolumeForReset.GetValue();
212 volume = ut::Clamp( volume, 0.0f, 1.0f );
214 nn::snd::SetMasterVolume( volume );
Dsnd_HardwareManagerAX.cppi183 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) );

123