Home
last modified time | relevance | path

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

12

/NW4C-1.3.3/include/nw/snd/
Dsnd_BasicSoundPlayer.h37 float pitch; member
77 void SetPitch( float pitch ) { m_PlayerParamSet.pitch = pitch; } in SetPitch() argument
87 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()
290 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.h140 void SetTrackPitch( u32 trackBitFlag, f32 pitch );
/NW4C-1.3.3/sources/libraries/snd/
Dsnd_BasicSound.cpp107 m_AmbientParam.pitch = 1.0f; in Initialize()
447 ambientParam.pitch = m_AmbientParam.pitch; in Update()
468 m_AmbientParam.pitch = ambientParam.pitch; in Update()
571 f32 pitch = 1.0f; in UpdateParam() local
572 pitch *= m_ExtPitch; in UpdateParam()
573 pitch *= m_AmbientParam.pitch; in UpdateParam()
574 pitch *= m_ActorParam.pitch; in UpdateParam()
614 command->pitch = pitch; in UpdateParam()
868 void BasicSound::SetPitch( f32 pitch ) in SetPitch() argument
870 NW_ASSERT( pitch >= 0.0f ); in SetPitch()
[all …]
Dsnd_Util.cpp746 register int pitch = pitch_; in CalcPitchRatio() local
749 while ( pitch < 0 ) in CalcPitchRatio()
752 pitch += RANGE; in CalcPitchRatio()
754 while ( pitch >= RANGE ) in CalcPitchRatio()
757 pitch -= RANGE; in CalcPitchRatio()
760 register int note = pitch / PITCH_DIVISION_RANGE; in CalcPitchRatio()
761 pitch -= note * PITCH_DIVISION_RANGE; in CalcPitchRatio()
779 if ( pitch != 0 ) in CalcPitchRatio()
781 ratio *= PitchTable[pitch]; in CalcPitchRatio()
Dsnd_Sound3DEngine.cpp135 float pitch; in UpdateAmbientParam() local
141 &pitch in UpdateAmbientParam()
144 ambientParam->pitch = pitch; in UpdateAmbientParam()
Dsnd_BankFileReader.cpp139 info->pitch = velocityRegion->GetPitch(); in ReadVelocityRegionInfo()
153 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_SequenceSoundPlayer.cpp514 void SequenceSoundPlayer::SetTrackPitch( u32 trackBitFlag, float pitch ) in SetTrackPitch() argument
516 NW_ASSERT( pitch >= 0.0f ); in SetTrackPitch()
517 SetTrackParam( trackBitFlag, &SequenceTrack::SetPitch, pitch ); in SetTrackPitch()
Dsnd_Bank.cpp136 pChannel->SetTune( regionInfo.pitch ); in NoteOn()
Dsnd_WaveSoundPlayer.cpp58 m_WaveSoundInfo.pitch = 1.0f; in Initialize()
486 pitchRatio *= m_WaveSoundInfo.pitch; in UpdateChannel()

12