Home
last modified time | relevance | path

Searched refs:pitch (Results 1 – 25 of 38) sorted by relevance

12

/NW4C-2.0.3/include/nw/snd/
Dsnd_BasicSoundPlayer.h39 float pitch; member
79 void SetPitch( float pitch ) { m_PlayerParamSet.pitch = pitch; } in SetPitch() argument
89 float GetPitch() const { return m_PlayerParamSet.pitch; } in GetPitch()
Dsnd_BasicSound.h46 f32 pitch; member
58 pitch(1.0f), in SoundParam()
111 f32 pitch; member
179 pitch(1.0f), in SoundAmbientParam()
196 f32 pitch; member
199 SoundActorParam(): volume(1.0f),pitch(1.0f),pan(0.0f) {} in SoundActorParam()
202 volume = pitch = 1.0f; in Reset()
292 void SetPitch( f32 pitch );
Dsnd_SoundActor.h315 void SetPitch( f32 pitch ) { m_ActorParam.pitch = pitch; } in SetPitch() argument
326 f32 GetPitch() const { return m_ActorParam.pitch; } in GetPitch()
Dsnd_SequenceSoundHandle.h298 void SetPitch( f32 pitch ) in SetPitch() argument
300 if ( IsAttachedSound() ) m_pSound->SetPitch( pitch ); in SetPitch()
813 void SetTrackPitch( u32 trackBitFlag, f32 pitch ) in SetTrackPitch() argument
815 if ( IsAttachedSound() ) m_pSound->SetTrackPitch( trackBitFlag, pitch ); in SetTrackPitch()
Dsnd_WaveSoundFileReader.h53 f32 pitch; member
70 f32 pitch; member
Dsnd_WaveSoundHandle.h304 void SetPitch( f32 pitch ) in SetPitch() argument
306 if ( IsAttachedSound() ) m_pSound->SetPitch( pitch ); in SetPitch()
Dsnd_SoundHandle.h344 void SetPitch( float pitch ) in SetPitch() argument
346 if ( IsAttachedSound() ) m_pSound->SetPitch( pitch ); in SetPitch()
Dsnd_StreamSoundHandle.h317 void SetPitch( f32 pitch ) in SetPitch() argument
319 if ( IsAttachedSound() ) m_pSound->SetPitch( pitch ); in SetPitch()
Dsnd_BankFileReader.h33 f32 pitch; // NW4R では tune という名前だった member
Dsnd_SequenceTrack.h181 void SetPitch( float pitch ) { m_ExtPitch = pitch; } in SetPitch() argument
Dsnd_BankFile.h201 f32 pitch; member
Dsnd_Channel.h163 void SetUserPitch( f32 pitch ) { m_UserPitch = pitch; } in SetUserPitch() argument
Dsnd_AnimSoundFile.h154 nw::ut::ResF32 pitch; member
/NW4C-2.0.3/sources/libraries/snd/
Dsnd_BasicSound.cpp108 m_AmbientParam.pitch = 1.0f; in Initialize()
454 ambientParam.pitch = m_AmbientParam.pitch; in Update()
475 m_AmbientParam.pitch = ambientParam.pitch; in Update()
578 f32 pitch = 1.0f; in UpdateParam() local
579 pitch *= m_ExtPitch; in UpdateParam()
580 pitch *= m_AmbientParam.pitch; in UpdateParam()
581 pitch *= m_ActorParam.pitch; in UpdateParam()
621 command->pitch = pitch; in UpdateParam()
875 void BasicSound::SetPitch( f32 pitch ) in SetPitch() argument
877 NW_ASSERT( pitch >= 0.0f ); in SetPitch()
[all …]
Dsnd_Util.cpp748 register int pitch = pitch_; in CalcPitchRatio() local
751 while ( pitch < 0 ) in CalcPitchRatio()
754 pitch += RANGE; in CalcPitchRatio()
756 while ( pitch >= RANGE ) in CalcPitchRatio()
759 pitch -= RANGE; in CalcPitchRatio()
762 register int note = pitch / PITCH_DIVISION_RANGE; in CalcPitchRatio()
763 pitch -= note * PITCH_DIVISION_RANGE; in CalcPitchRatio()
781 if ( pitch != 0 ) in CalcPitchRatio()
783 ratio *= PitchTable[pitch]; in CalcPitchRatio()
Dsnd_Sound3DEngine.cpp137 float pitch; in UpdateAmbientParam() local
143 &pitch in UpdateAmbientParam()
146 ambientParam->pitch = pitch; in UpdateAmbientParam()
Dsnd_BankFileReader.cpp146 info->pitch = velocityRegion->GetPitch(); in ReadVelocityRegionInfo()
160 info->pitch = regionParameter->pitch; in ReadVelocityRegionInfo()
Dsnd_Channel.cpp237 register f32 pitch; in Update() local
240 pitch = m_CentPitch; in Update()
244pitch = Util::CalcPitchRatio( static_cast<s32>( cent * ( 1 << Util::PITCH_DIVISION_BIT ) ) ); in Update()
246 m_CentPitch = pitch; in Update()
249 pitch = pitch * m_Tune * m_UserPitchRatio; in Update()
294 m_pVoice->SetPitch( pitch ); in Update()
Dsnd_AnimEventPlayer.cpp61 if ( eventInfo.pitch != 1.0f ) in InitParam()
63 m_Handle.SetPitch( eventInfo.pitch ); in InitParam()
Dsnd_Sound3DCalculator.cpp181 f32 pitch; in CalcPitch() local
183 pitch = 0.0f; in CalcPitch()
186 pitch = 65535.0f; in CalcPitch()
189 pitch = ( sonicVelocity - listenerVelocity ) / ( sonicVelocity - actorVelocity ); in CalcPitch()
192 *pitchPtr = pitch; in CalcPitch()
Dsnd_WaveSoundFileReader.cpp129 dst->pitch = src.GetPitch(); in ReadWaveSoundInfo()
159 dst->pitch = src.GetPitch(); in ReadNoteInfo()
Dsnd_BasicSoundPlayer.cpp31 pitch = 1.0f; in Initialize()
Dsnd_SequenceSoundPlayer.cpp516 void SequenceSoundPlayer::SetTrackPitch( u32 trackBitFlag, float pitch ) in SetTrackPitch() argument
518 NW_ASSERT( pitch >= 0.0f ); in SetTrackPitch()
519 SetTrackParam( trackBitFlag, &SequenceTrack::SetPitch, pitch ); in SetTrackPitch()
Dsnd_Bank.cpp138 pChannel->SetTune( regionInfo.pitch ); in NoteOn()
Dsnd_WaveSoundPlayer.cpp60 m_WaveSoundInfo.pitch = 1.0f; in Initialize()
488 pitchRatio *= m_WaveSoundInfo.pitch; in UpdateChannel()

12