Home
last modified time | relevance | path

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

12

/NW4C-1.2.23/sources/libraries/snd/
Dsnd_Util.cpp744 register int pitch = pitch_; in CalcPitchRatio() local
747 while ( pitch < 0 ) in CalcPitchRatio()
750 pitch += RANGE; in CalcPitchRatio()
752 while ( pitch >= RANGE ) in CalcPitchRatio()
755 pitch -= RANGE; in CalcPitchRatio()
758 register int note = pitch / PITCH_DIVISION_RANGE; in CalcPitchRatio()
759 pitch -= note * PITCH_DIVISION_RANGE; in CalcPitchRatio()
777 if ( pitch != 0 ) in CalcPitchRatio()
779 ratio *= PitchTable[pitch]; in CalcPitchRatio()
Dsnd_BasicSound.cpp107 m_AmbientParam.pitch = 1.0f; in Initialize()
436 ambientParam.pitch = m_AmbientParam.pitch; in Update()
457 m_AmbientParam.pitch = ambientParam.pitch; in Update()
560 float pitch = 1.0f; in UpdateParam() local
561 pitch *= m_ExtPitch; in UpdateParam()
562 pitch *= m_AmbientParam.pitch; in UpdateParam()
563 pitch *= m_ActorParam.pitch; in UpdateParam()
603 command->pitch = pitch; in UpdateParam()
849 void BasicSound::SetPitch( float pitch ) in SetPitch() argument
851 NW_ASSERT( pitch >= 0.0f ); in SetPitch()
[all …]
Dsnd_Sound3DEngine.cpp119 float pitch; in UpdateAmbientParam() local
125 &pitch in UpdateAmbientParam()
128 ambientParam->pitch = pitch; in UpdateAmbientParam()
Dsnd_BankFileReader.cpp131 info->pitch = velocityRegion->GetPitch(); in ReadVelocityRegionInfo()
145 info->pitch = regionParameter->pitch; in ReadVelocityRegionInfo()
Dsnd_Channel.cpp235 register f32 pitch; in Update() local
238 pitch = m_CentPitch; in Update()
242pitch = Util::CalcPitchRatio( static_cast<s32>( cent * ( 1 << Util::PITCH_DIVISION_BIT ) ) ); in Update()
244 m_CentPitch = pitch; in Update()
247 pitch = pitch * m_Tune * m_UserPitchRatio; in Update()
292 m_pVoice->SetPitch( pitch ); in Update()
Dsnd_Sound3DCalculator.cpp179 f32 pitch; in CalcPitch() local
181 pitch = 0.0f; in CalcPitch()
184 pitch = 65535.0f; in CalcPitch()
187 pitch = ( sonicVelocity - listenerVelocity ) / ( sonicVelocity - actorVelocity ); in CalcPitch()
190 *pitchPtr = pitch; in CalcPitch()
Dsnd_WaveSoundFileReader.cpp127 dst->pitch = src.GetPitch(); in ReadWaveSoundInfo()
152 dst->pitch = src.GetPitch(); in ReadNoteInfo()
Dsnd_BasicSoundPlayer.cpp29 pitch = 1.0f; in Initialize()
Dsnd_Bank.cpp123 pChannel->SetTune( regionInfo.pitch ); in NoteOn()
Dsnd_SequenceSoundPlayer.cpp510 void SequenceSoundPlayer::SetTrackPitch( u32 trackBitFlag, float pitch ) in SetTrackPitch() argument
512 NW_ASSERT( pitch >= 0.0f ); in SetTrackPitch()
513 SetTrackParam( trackBitFlag, &SequenceTrack::SetPitch, pitch ); in SetTrackPitch()
Dsnd_WaveSoundPlayer.cpp58 m_WaveSoundInfo.pitch = 1.0f; in Initialize()
478 pitchRatio *= m_WaveSoundInfo.pitch; in UpdateChannel()
/NW4C-1.2.23/include/nw/snd/
Dsnd_BasicSoundPlayer.h36 float pitch; member
76 void SetPitch( float pitch ) { m_PlayerParamSet.pitch = pitch; } in SetPitch() argument
86 float GetPitch() const { return m_PlayerParamSet.pitch; } in GetPitch()
Dsnd_BasicSound.h44 f32 pitch; member
56 pitch(1.0f), in SoundParam()
92 f32 pitch; member
132 pitch(1.0f), in SoundAmbientParam()
194 f32 pitch; member
197 SoundActorParam(): volume(1.0f),pitch(1.0f),pan(0.0f) {} in SoundActorParam()
200 volume = pitch = 1.0f; in Reset()
284 void SetPitch( f32 pitch );
Dsnd_SoundActor.h307 void SetPitch( f32 pitch ) { m_ActorParam.pitch = pitch; } in SetPitch() argument
318 f32 GetPitch() const { return m_ActorParam.pitch; } in GetPitch()
Dsnd_SequenceSoundHandle.h284 void SetPitch( f32 pitch ) in SetPitch() argument
286 if ( IsAttachedSound() ) m_pSound->SetPitch( pitch ); in SetPitch()
799 void SetTrackPitch( u32 trackBitFlag, f32 pitch ) in SetTrackPitch() argument
801 if ( IsAttachedSound() ) m_pSound->SetTrackPitch( trackBitFlag, pitch ); in SetTrackPitch()
Dsnd_WaveSoundFileReader.h51 f32 pitch; member
68 f32 pitch; member
Dsnd_WaveSoundHandle.h291 void SetPitch( f32 pitch ) in SetPitch() argument
293 if ( IsAttachedSound() ) m_pSound->SetPitch( pitch ); in SetPitch()
Dsnd_SoundHandle.h324 void SetPitch( float pitch ) in SetPitch() argument
326 if ( IsAttachedSound() ) m_pSound->SetPitch( pitch ); in SetPitch()
Dsnd_StreamSoundHandle.h302 void SetPitch( f32 pitch ) in SetPitch() argument
304 if ( IsAttachedSound() ) m_pSound->SetPitch( pitch ); in SetPitch()
Dsnd_BankFileReader.h31 f32 pitch; // NW4R では tune という名前だった member
Dsnd_SequenceTrack.h179 void SetPitch( float pitch ) { m_ExtPitch = pitch; } in SetPitch() argument
Dsnd_BankFile.h199 f32 pitch; member
Dsnd_Channel.h161 void SetUserPitch( f32 pitch ) { m_UserPitch = pitch; } in SetUserPitch() argument
Dsnd_HardwareChannel.h119 void SetSrcType( SrcType type, f32 pitch );
Dsnd_SequenceSound.h131 void SetTrackPitch( u32 trackBitFlag, f32 pitch );

12