[mythtv-commits] mythtv commits

mythtv at cvs.mythtv.org mythtv at cvs.mythtv.org
Sat Apr 2 15:30:03 UTC 2005

Changes committed by thor on Sat Apr  2 15:25:03 2005

Added Files:
   in mythtv/libs/libmyth:
        audiooutputnull.cpp audiooutputnull.h 
Modified Files:
   in mythtv/libs/libmyth:
        audiooutput.cpp audiooutput.h audiooutputbase.cpp 
        audiooutputbase.h libmyth.pro 
Log Message:

Add an audiooutputnull device. 

In its default invocation, this AudioOutput object does almost nothing. It
takes all bytes written to its "device" and just ignores them. Since there
is no device in the way consuming the audio bytes, nothing throttles the
speed of decoding.
If it is told to buffer the final PCM output data (bufferOutputData(true)),
then it will maintain a small buffer and will not let anymore audio data be
decoded until something else pulls the data off (via readOutputData()).

I'm using this as a way to get decoded PCM bytes ready for RTSP streaming in
the mfd.

If someone has need of an AudioOutput device that actually "consumes" bytes
at the right speed but still touches no hardware device, it would be
relatively easy to add some checks to gettimeofday() in
getSpaceOnSoundcard() and return the correct number of bytes that should
have been consumed had their actually been a soundcard consuming them.


More information about the mythtv-commits mailing list