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

CAudio::CAudio ( std::string const &  pdev,
unsigned int  rate 
)

Constructor This constructor initialise the API audio drivers

Definition at line 10 of file audio.cc.

                                                      :
      m_type(),
      m_volume(1.0),
      m_volumeMusic(100),
      m_volumePreview(60),
      m_rs(da::settings(pdev)
      .set_callback(boost::ref(*this))
      .set_channels(2)
      .set_rate(rate)
      .set_debug(std::cerr)),
      m_playback(m_rs)
{
      m_mpeg.reset();
      ffmpeg_paused = false;
      length = 0;
      m_thread.reset(new boost::thread(boost::ref(*this)));
}


Generated by  Doxygen 1.6.0   Back to index