| 719 | } |
| 720 | |
| 721 | void 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 | |
| 738 | const vec3 ThreadedSound::GetPosition(const unsigned long& handle) { |
| 739 | return tsdb.GetHandleData(handle).position; |