Logo Search packages:      
Sourcecode: performous version File versions  Download package

void CAudio::playMusic ( std::string const &  filename  )  [inline]

This method start the audio playback. If a track is already playing it is stopped. It also compute the length variable.

Parameters:
filename the track filename

Definition at line 34 of file audio.hh.

                                                {
            boost::mutex::scoped_lock l(m_mutex);
            m_filename = filename;
            m_type = PLAY;
            m_cond.notify_one();
      }


Generated by  Doxygen 1.6.0   Back to index