MCPcopy Create free account
hub / github.com/WolfireGames/overgrowth / PlayGroup

Method PlayGroup

Source/Sound/threaded_sound_wrapper.cpp:721–736  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

719}
720
721void ThreadedSound::PlayGroup(const unsigned long& handle, const SoundGroupPlayInfo& sgpi) {
722 tsdb.SetValues(handle, sgpi.GetPath().c_str(), "Group");
723
724 ThreadedSoundMessage tsm(ThreadedSoundMessage::InFPlayGroup);
725
726 SoundGroupPlayInfo* v;
727
728 v = new SoundGroupPlayInfo(sgpi);
729
730 v->play_past_tick = sgpi.play_past_tick;
731
732 tsm.SetHandle(handle);
733 tsm.SetData(&v, sizeof(SoundGroupPlayInfo*));
734
735 message_queue_in.Queue(tsm);
736}
737
738const vec3 ThreadedSound::GetPosition(const unsigned long& handle) {
739 return tsdb.GetHandleData(handle).position;

Callers 1

ThreadedSoundLoopFunction · 0.45

Calls 6

SetValuesMethod · 0.80
SetHandleMethod · 0.80
c_strMethod · 0.45
GetPathMethod · 0.45
SetDataMethod · 0.45
QueueMethod · 0.45

Tested by

no test coverage detected