Home
last modified time | relevance | path

Searched refs:priority (Results 1 – 25 of 58) sorted by relevance

123

/NW4C-2.0.3/sources/libraries/snd/
Dsnd_TaskManager.cpp78 void TaskManager::AppendTask( Task* task, TaskPriority priority ) in AppendTask() argument
80 NW_MINMAXLT_ASSERT( priority, 0, PRIORITY_NUM ); in AppendTask()
86 m_TaskList[ priority ].PushBack( task ); in AppendTask()
100 Task* TaskManager::GetNextTask( TaskPriority priority, bool doRemove ) in GetNextTask() argument
102 NW_MINMAXLT_ASSERT( priority, 0, PRIORITY_NUM ); in GetNextTask()
106 if ( m_TaskList[ priority ].IsEmpty() ) return NULL; in GetNextTask()
108 Task* task = &m_TaskList[ priority ].GetFront(); in GetNextTask()
110 m_TaskList[ priority ].PopFront(); in GetNextTask()
249 TaskPriority priority = static_cast<TaskPriority>( i ); in RemoveTask() local
250 TaskList::Iterator itr = m_TaskList[ priority ].GetBeginIter(); in RemoveTask()
[all …]
Dsnd_Sound3DEngine.cpp63 ambientParam->priority = - sound3DManager->GetMaxPriorityReduction(); in UpdateAmbientParam()
88 int priority; in UpdateAmbientParam() local
94 &priority in UpdateAmbientParam()
103 ambientParam->priority = ut::Max( priority, ambientParam->priority ); in UpdateAmbientParam()
238 return ambientParam.priority; in GetAmbientPriority()
Dsnd_BasicSound.cpp115 m_AmbientParam.priority = 0; in Initialize()
129 void BasicSound::SetPriority( int priority, int ambientPriority ) in SetPriority() argument
131 NW_MINMAX_ASSERT( priority, PRIORITY_MIN, PRIORITY_MAX ); in SetPriority()
133 m_Priority = static_cast<u8>(priority); in SetPriority()
134 m_AmbientParam.priority = ambientPriority; in SetPriority()
136 void BasicSound::GetPriority( int* priority, int* ambientPriority ) const in GetPriority() argument
138 if ( priority != NULL ) in GetPriority()
140 *priority = m_Priority; in GetPriority()
144 *ambientPriority = m_AmbientParam.priority; in GetPriority()
461 ambientParam.priority = m_AmbientParam.priority; in Update()
[all …]
Dsnd_SoundThread.cpp154 s32 priority, in CreateSoundThread() argument
173 mainThread.priority = (coreNo == 1) ? 0 : priority; in CreateSoundThread()
178 userThread.priority = userThreadPriority; in CreateSoundThread()
200 s32 priority, in CreateSoundThread() argument
216 priority, in CreateSoundThread()
232 s32 priority ) in CreateUserSoundThread() argument
238 priority ); in CreateUserSoundThread()
246 s32 priority, in Create() argument
262 priority, in Create()
Dsnd_WaveSound.cpp160 void WaveSound::SetChannelPriority( int priority ) in SetChannelPriority() argument
162 NW_MINMAX_ASSERT( priority, 0, 127 ); in SetChannelPriority()
169 command->priority = priority; in SetChannelPriority()
204 int priority = CalcCurrentPlayerPriority(); in OnUpdatePlayerPriority() local
205 m_pManager.UpdatePriority( this, priority ); in OnUpdatePlayerPriority()
Dsnd_VoiceManager.cpp110 int priority, in AllocVoice() argument
118 if ( DropLowestPriorityVoice( priority ) == 0 ) return NULL; in AllocVoice()
124 if ( ! voice.Alloc( voiceChannelCount, priority, callback, callbackData ) ) in AllocVoice()
130 voice.m_Priority = static_cast<u8>( priority ); in AllocVoice()
239 int VoiceManager::DropLowestPriorityVoice( int priority ) in DropLowestPriorityVoice() argument
244 if ( dropVoice->GetPriority() > priority ) return 0; in DropLowestPriorityVoice()
Dsnd_ExternalSoundPlayer.cpp230 int priority = internal::BasicSound::PRIORITY_MAX + 1; in GetLowestPrioritySound() local
236 if ( priority > itrPriority ) in GetLowestPrioritySound()
239 priority = itrPriority; in GetLowestPrioritySound()
Dsnd_Sound3DManager.cpp232 int priority = 0; in detail_GetAmbientPriority() local
236 priority = m_pSound3DEngine->GetAmbientPriority( in detail_GetAmbientPriority()
243 return priority; in detail_GetAmbientPriority()
Dsnd_TaskThread.cpp51 bool TaskThread::Create( s32 priority, ThreadStack& stack ) in Create() argument
68 priority ).IsSuccess(); in Create()
Dsnd_WaveSoundPlayer.cpp218 void WaveSoundPlayer::SetChannelPriority( int priority ) in SetChannelPriority() argument
220 NW_MINMAX_ASSERT( priority, 0, 127 ); in SetChannelPriority()
221 m_Priority = static_cast<u8>( priority ); in SetChannelPriority()
376 const int priority = GetChannelPriority() + DEFAULT_PRIORITY; in StartChannel() local
415 priority, in StartChannel()
Dsnd_AnimSoundImpl.cpp662 int priority = m_pEventPlayers[i].GetPlayingSoundPriority(); in StartEvent() local
663 if ( lowestPriority > priority ) in StartEvent()
666 lowestPriority = priority; in StartEvent()
700 int priority = m_pEventPlayers[i].GetPlayingSoundPriority(); in HoldEvent() local
701 if ( lowestPriority > priority ) in HoldEvent()
704 lowestPriority = priority; in HoldEvent()
Dsnd_SequenceSoundPlayer.cpp122 m_ParserParam.priority = 64; in Initialize()
378 void SequenceSoundPlayer::SetChannelPriority( int priority ) in SetChannelPriority() argument
380 NW_MINMAX_ASSERT( priority, 0, 127 ); in SetChannelPriority()
381 m_ParserParam.priority = static_cast<u8>( priority ); in SetChannelPriority()
/NW4C-2.0.3/include/nw/snd/
Dsnd_SoundInstanceManager.h122 Sound* Alloc( int priority, int ambientPriority ) in Alloc() argument
124 int allocPriority = priority + ambientPriority; in Alloc()
161 sound->SetPriority( priority, ambientPriority ); in Alloc()
201 void UpdatePriority( Sound* sound, int priority ) in UpdatePriority() argument
206 InsertPriorityList( sound, priority ); in UpdatePriority()
286 void InsertPriorityList( Sound* sound, int priority ) in InsertPriorityList() argument
292 if ( priority < itr->CalcCurrentPlayerPriority() ) break; in InsertPriorityList()
Dsnd_TaskThread.h33 bool Create( s32 priority, ThreadStack& stack );
38 void SetPriority( s32 priority ) in SetPriority() argument
40 m_Thread.ChangePriority( priority ); in SetPriority()
Dsnd_BasicSound.h53 int priority; member
65 priority(0), in SoundParam()
164 int priority; member
186 priority(0), in SoundAmbientParam()
283 void SetPriority( int priority, int ambientPriority );
284 void GetPriority( int* priority, int* ambientPriority ) const;
307 void SetPlayerPriority( int priority );
338 static_cast<int>( m_Priority ) + static_cast<int>( m_AmbientParam.priority ), in CalcCurrentPlayerPriority()
Dsnd_WaveSoundHandle.h404 void SetPlayerPriority( int priority ) in SetPlayerPriority() argument
406 if ( IsAttachedSound() ) m_pSound->SetPlayerPriority( priority ); in SetPlayerPriority()
481 void SetChannelPriority( int priority ) in SetChannelPriority() argument
483 if ( IsAttachedSound() ) m_pSound->SetChannelPriority( priority ); in SetChannelPriority()
Dsnd_SequenceSoundHandle.h398 void SetPlayerPriority( int priority ) in SetPlayerPriority() argument
400 if ( IsAttachedSound() ) m_pSound->SetPlayerPriority( priority ); in SetPlayerPriority()
475 void SetChannelPriority( int priority ) in SetChannelPriority() argument
477 if ( IsAttachedSound() ) m_pSound->SetChannelPriority( priority ); in SetChannelPriority()
Dsnd_SoundThread.h84 s32 priority,
95 s32 priority,
101 s32 priority );
106 s32 priority,
Dsnd_TaskManager.h46 void AppendTask( Task* task, TaskPriority priority );
71 Task* GetNextTask( TaskPriority priority, bool doRemove );
Dsnd_VoiceManager.h51 int priority,
71 int DropLowestPriorityVoice( int priority );
Dsnd_SoundHandle.h493 void SetPlayerPriority( int priority ) in SetPlayerPriority() argument
495 if ( IsAttachedSound() ) m_pSound->SetPlayerPriority( priority ); in SetPlayerPriority()
Dsnd_SequenceSoundPlayer.h140 u8 priority; member
200 void SetChannelPriority( int priority );
205 int GetChannelPriority() const { return m_ParserParam.priority; } in GetChannelPriority()
/NW4C-2.0.3/include/nw/gfx/
Dgfx_RenderElement.h181 void SetPriorityForDetailedMaterial(u8 priority, u32 shift) in SetPriorityForDetailedMaterial() argument
184 static_cast<KeyType>(priority & BIT64_MATERIAL_PRIORITY_MASK) in SetPriorityForDetailedMaterial()
218 void SetPriorityForSimpleMaterial(u8 priority, u32 shift) in SetPriorityForSimpleMaterial() argument
221 static_cast<KeyType>(priority & BIT64_SIMPLE_MATERIAL_PRIORITY_MASK) in SetPriorityForSimpleMaterial()
382 u8 priority,
468 u8 priority, in CreateCommandRenderKey() argument
475 priority, RenderElementType::BIT64_DEPTH_BIT_SIZE); in CreateCommandRenderKey()
563 u8 priority, in CreateCommandRenderKey() argument
570 priority, RenderElementType::BIT64_DEPTH_BIT_SIZE); in CreateCommandRenderKey()
661 u8 priority, in CreateCommandRenderKey() argument
[all …]
Dgfx_UserRenderNode.h45 u8 priority; //!< 描画優先度 member
50 …Description() : translucencyKind(nw::gfx::ResMaterial::TRANSLUCENCY_KIND_OPAQUE), priority(0), lay… in Description()
169 void SetPriority(const u8 priority) in SetPriority() argument
171 m_Priority = priority; in SetPriority()
/NW4C-2.0.3/sources/libraries/snd/platform/
Dsnd_HardwareChannelManagerAX.cppi29 u32 priority,
38 priority,

123