diff options
author | Christian Gmeiner <christian.gmeiner@gmail.com> | 2009-02-22 16:58:37 +0100 |
---|---|---|
committer | Christian Gmeiner <christian.gmeiner@gmail.com> | 2009-02-22 16:58:37 +0100 |
commit | c154d033633e41290b0d5231b94840762666dd76 (patch) | |
tree | 4c3d9ba870fd70c066a5e9f67b85edf634690bf5 /dxr3output-audio.c | |
parent | 2d405ad8011283e20c50d63eb47741cd5dbcc5c7 (diff) | |
download | vdr-plugin-dxr3-c154d033633e41290b0d5231b94840762666dd76.tar.gz vdr-plugin-dxr3-c154d033633e41290b0d5231b94840762666dd76.tar.bz2 |
Use iAudio class to resample audio stream
With the help of iAudio class, we can factor out the resample
methode and clean up dxr3interface.[ch] a little bit.
Diffstat (limited to 'dxr3output-audio.c')
-rw-r--r-- | dxr3output-audio.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/dxr3output-audio.c b/dxr3output-audio.c index f267003..af1a879 100644 --- a/dxr3output-audio.c +++ b/dxr3output-audio.c @@ -106,7 +106,10 @@ void cDxr3AudioOutThread::Action() void cDxr3AudioOutThread::PlayFrame(cFixedLengthFrame *frame) { - audioOutput->changeVolume((short *)frame->GetData(), (size_t)frame->GetCount()); + if (!cDxr3Interface::Instance().IsAudioModeAC3()) { + audioOutput->changeVolume((short *)frame->GetData(), (size_t)frame->GetCount()); + } + m_dxr3Device.PlayAudioFrame(frame); } |