MCPcopy Create free account
hub / github.com/ddnet/ddnet / Enqueue

Method Enqueue

src/game/client/components/sounds.cpp:172–183  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

170}
171
172void CSounds::Enqueue(int Channel, int SetId)
173{
174 if(GameClient()->m_SuppressEvents)
175 return;
176 if(m_QueuePos >= QUEUE_SIZE)
177 return;
178 if(Channel != CHN_MUSIC && g_Config.m_ClEditor)
179 return;
180
181 m_aQueue[m_QueuePos].m_Channel = Channel;
182 m_aQueue[m_QueuePos++].m_SetId = SetId;
183}
184
185void CSounds::PlayAndRecord(int Channel, int SetId, float Volume, vec2 Position)
186{

Callers 3

OnMessageMethod · 0.80
TranslateGameMsgMethod · 0.80
UpdateMusicStateMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected