From eecd8d6b5fc35cd39b53f6c2642ccbc388d47044 Mon Sep 17 00:00:00 2001 From: Christian Gmeiner Date: Fri, 5 Jun 2009 08:39:51 +0200 Subject: prepare parts of the audio pipline to work directly with cDxr3PesFrame --- dxr3output-audio.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'dxr3output-audio.c') diff --git a/dxr3output-audio.c b/dxr3output-audio.c index dd1e4ba..a7d6b10 100644 --- a/dxr3output-audio.c +++ b/dxr3output-audio.c @@ -128,14 +128,14 @@ void cDxr3AudioOutThread::PlayFrame(cFixedLengthFrame *frame) void cDxr3AudioOutThread::PlayFrame(cDxr3PesFrame *frame) { // update audio context - audioOutput->setup(frame->GetSampleContext()); + audioOutput->setup(frame->ctx); // volume changes if (!cDxr3Interface::instance()->IsAudioModeAC3()) { - audioOutput->changeVolume((short *)frame->GetDecoded(), (size_t)frame->GetDecodedSize()); + audioOutput->changeVolume((short *)frame->decoded, (size_t)frame->decodedSize); } - audioOutput->write((uchar *)frame->GetDecoded(), frame->GetDecodedSize()); + audioOutput->write((uchar *)frame->decoded, frame->decodedSize); } #undef SCR -- cgit v1.2.3 From 258901012adff5929c9488fe621101d7aa3e42e7 Mon Sep 17 00:00:00 2001 From: Christian Gmeiner Date: Fri, 5 Jun 2009 08:49:39 +0200 Subject: update emacs code style part --- dxr3output-audio.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'dxr3output-audio.c') diff --git a/dxr3output-audio.c b/dxr3output-audio.c index a7d6b10..f540687 100644 --- a/dxr3output-audio.c +++ b/dxr3output-audio.c @@ -144,5 +144,6 @@ void cDxr3AudioOutThread::PlayFrame(cDxr3PesFrame *frame) // mode: c++ // c-file-style: "stroustrup" // c-file-offsets: ((inline-open . 0)) -// indent-tabs-mode: t +// tab-width: 4; +// indent-tabs-mode: nil // End: -- cgit v1.2.3