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

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

This method starts the audio playback at 30sec from the beginning of the track. If a track is already playing it is stopped. It also computes the length variable.

Parameters:
filename the track filename

Definition at line 46 of file audio.hh.

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


Generated by  Doxygen 1.6.0   Back to index