| 706 | } |
| 707 | |
| 708 | void 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 | |
| 721 | void ThreadedSound::PlayGroup(const unsigned long& handle, const SoundGroupPlayInfo& sgpi) { |
| 722 | tsdb.SetValues(handle, sgpi.GetPath().c_str(), "Group"); |