[mythtv-commits] mythtv commit: r26703 by markk

mythtv at cvs.mythtv.org mythtv at cvs.mythtv.org
Fri Oct 8 03:51:46 UTC 2010


      Author: markk
        Date: 2010-10-08 03:51:46 +0000 (Fri, 08 Oct 2010)
New Revision: 26703
   Changeset: http://svn.mythtv.org/trac/changeset/26703

Log:

Switch over to using the new PulseHandler class.

The PulseAudio suspend/resume code now uses a global singleton to
interact with the sound server. It should be entirely thread safe,
handle unexpected callbacks from the server in a graceful manner, be
faster in operation (we no longer connect each time) and it does not
require an additional thread to operate.

A couple of items still need cleaning up:-

- need to add back a check into IsPulseAudioRunning when pulse support
is not compiled in and warn the user when PulseAudio is running (once on
startup)
- really need to cleanup the connection on exit
(Suspend(PulseHandler::kPulseCleanup)) to ensure we don't leak
connections in the server.

Refs #9031


Modified:

   trunk/mythtv/libs/libmyth/audiooutput.cpp
   trunk/mythtv/libs/libmyth/libmyth.pro




More information about the mythtv-commits mailing list