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

Method Play

Source/Sound/threaded_sound_wrapper.cpp:708–719  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

706}
707
708void ThreadedSound::Play(const unsigned long& handle, SoundPlayInfo spi) {
709 tsdb.SetValues(handle, spi.path.c_str(), "Play");
710
711 ThreadedSoundMessage tsm(ThreadedSoundMessage::InFPlay);
712
713 SoundPlayInfo* v = new SoundPlayInfo(spi);
714
715 tsm.SetHandle(handle);
716 tsm.SetData(&v, sizeof(SoundPlayInfo*));
717
718 message_queue_in.Queue(tsm);
719}
720
721void ThreadedSound::PlayGroup(const unsigned long& handle, const SoundGroupPlayInfo& sgpi) {
722 tsdb.SetValues(handle, sgpi.GetPath().c_str(), "Group");

Callers 1

ThreadedSoundLoopFunction · 0.45

Calls 5

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

Tested by

no test coverage detected