summaryrefslogtreecommitdiff
path: root/dxr3output.h
diff options
context:
space:
mode:
authorChristian Gmeiner <christian.gmeiner@gmail.com>2009-02-21 17:59:40 +0100
committerChristian Gmeiner <christian.gmeiner@gmail.com>2009-02-21 17:59:40 +0100
commit2d405ad8011283e20c50d63eb47741cd5dbcc5c7 (patch)
tree49c8559b39f48d8368d31784442ac4b2b6263dcf /dxr3output.h
parentf686d1cc06b0f6251f882087820d685cff0c90be (diff)
downloadvdr-plugin-dxr3-2d405ad8011283e20c50d63eb47741cd5dbcc5c7.tar.gz
vdr-plugin-dxr3-2d405ad8011283e20c50d63eb47741cd5dbcc5c7.tar.bz2
first work to get alsa audio output
Introduce a iAudio class - will be later base class for oss and alas output -, which handles volume and channel handling.
Diffstat (limited to 'dxr3output.h')
-rw-r--r--dxr3output.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/dxr3output.h b/dxr3output.h
index 9b8d408..6720bf1 100644
--- a/dxr3output.h
+++ b/dxr3output.h
@@ -26,6 +26,8 @@
#include "dxr3audiodecoder.h"
#include "Uncopyable.h"
+class iAudio;
+
// ==================================
class cDxr3OutputThread : public cThread, private Uncopyable {
public:
@@ -51,8 +53,15 @@ class cDxr3AudioOutThread : public cDxr3OutputThread {
public:
cDxr3AudioOutThread(cDxr3Interface& dxr3Device, cDxr3SyncBuffer& buffer);
+ void setAudio(iAudio *a) { audioOutput = a; }
+
protected:
void Action();
+
+private:
+ iAudio *audioOutput;
+
+ void PlayFrame(cFixedLengthFrame *frame);
};
// ==================================