Skip to content

Commit

Permalink
Re: r27010 ; use API to read pause status instead of accessing direct…
Browse files Browse the repository at this point in the history
…ly the protected variable. Write zero buffer in 8ms to reduce startup latency.

git-svn-id: http://svn.mythtv.org/svn/trunk@27069 7dbf422c-18fa-0310-86e9-fd20926502f2
  • Loading branch information
jyavenard committed Nov 1, 2010
1 parent 5236d90 commit e5cbe2d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion mythtv/libs/libmyth/audiooutputbase.cpp
Expand Up @@ -1259,7 +1259,7 @@ void AudioOutputBase::OutputAudioLoop(void)

// only send zeros if card doesn't already have at least one
// fragment of zeros -dag
WriteAudio(zeros, fragment_size);
WriteAudio(zeros, zero_fragment_size);
continue;
}
else
Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmyth/audiooutputpulse.cpp
Expand Up @@ -227,7 +227,7 @@ void AudioOutputPulseAudio::WriteAudio(uchar *aubuf, int size)
pa_stream_state_t sstate = pa_stream_get_state(pstream);

// Do not write anything to pulse server if we are in pause mode
if (actually_paused)
if (IsPaused())
return;

VBAUDIOTS(fn_log_tag + QString("writing %1 bytes").arg(size));
Expand Down

0 comments on commit e5cbe2d

Please sign in to comment.