MCPcopy Create free account
hub / github.com/MayaPosch/NymphCast / setPosition

Method setPosition

src/server/gui/core/Sound.cpp:161–169  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

159}
160
161void Sound::setPosition(Uint32 newPosition)
162{
163 mSamplePos = newPosition;
164 if (mSamplePos >= mSampleLength) {
165 //got to or beyond the end of the sample. stop playing
166 playing = false;
167 mSamplePos = 0;
168 }
169}
170
171Uint32 Sound::getLength() const
172{

Callers 15

mixAudioMethod · 0.45
renderLoadingScreenMethod · 0.45
onValueChangedMethod · 0.45
updateGridMethod · 0.45
OptionListPopupMethod · 0.45
onSizeChangedMethod · 0.45
updateElementPositionMethod · 0.45
buildTilesMethod · 0.45
updateCellComponentMethod · 0.45
renderMethod · 0.45
GuiSettingsMethod · 0.45
initializeMenuMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected