From 2d405ad8011283e20c50d63eb47741cd5dbcc5c7 Mon Sep 17 00:00:00 2001 From: Christian Gmeiner Date: Sat, 21 Feb 2009 17:59:40 +0100 Subject: 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. --- dxr3output.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'dxr3output.h') 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); }; // ================================== -- cgit v1.2.3