From: <tr...@us...> - 2008-07-20 16:54:47
|
Revision: 834 http://ultrastar-ng.svn.sourceforge.net/ultrastar-ng/?rev=834&view=rev Author: tronic Date: 2008-07-20 16:54:44 +0000 (Sun, 20 Jul 2008) Log Message: ----------- Pulse cleanup Modified Paths: -------------- trunk/audio/audio_dev_pulse.cpp Modified: trunk/audio/audio_dev_pulse.cpp =================================================================== --- trunk/audio/audio_dev_pulse.cpp 2008-07-20 16:51:03 UTC (rev 833) +++ trunk/audio/audio_dev_pulse.cpp 2008-07-20 16:54:44 UTC (rev 834) @@ -67,7 +67,7 @@ m_s(s), m_quit(false) { - m_s.set_subdev(m_s.subdev().empty() ? "libda_pulse_record" : m_s.subdev()); + m_s.set_subdev(m_s.subdev().empty() ? "libda_pulse_playback" : m_s.subdev()); pa_sample_spec ss; { int val = 1; bool little_endian = *reinterpret_cast<char*>(&val); @@ -98,9 +98,8 @@ } catch (std::exception& e) { m_s.debug(std::string("Exception from recording callback: ") + e.what()); } - int pos = 0, size = buf.size() * sizeof(sample_t); int e; - if (pa_simple_write(m_stream, &buf[0], size, &e) < 0) m_s.debug(pa_strerror(e)); + if (pa_simple_write(m_stream, &buf[0], buf.size() * sizeof(sample_t), &e) < 0) m_s.debug(pa_strerror(e)); } } }; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |