33 m_currentSource->
stop();
35 m_currentSource =
g_sounds.
play(filename, fadetime, m_gain*gain);
36 return m_currentSource;
47 m_currentSource->
stop();
48 m_currentSource =
nullptr;
58 std::random_shuffle(m_queue.begin(), m_queue.end());
64 if(m_currentSource && !m_currentSource->
isPlaying())
65 m_currentSource =
nullptr;
68 QueueEntry entry = m_queue.front();
70 m_queue.push_back(entry);
71 play(entry.filename, entry.fadetime, entry.gain);
86 m_currentSource->
stop();
87 m_currentSource =
nullptr;