From e90ad159371e1f83e02ae10db326c2b2fbffdfbd Mon Sep 17 00:00:00 2001 From: Christian Gmeiner Date: Tue, 2 Jun 2009 08:30:13 +0200 Subject: rework singleton class --- dxr3output.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'dxr3output.h') diff --git a/dxr3output.h b/dxr3output.h index e80478b..083893e 100644 --- a/dxr3output.h +++ b/dxr3output.h @@ -31,7 +31,7 @@ class iAudio; // ================================== class cDxr3OutputThread : public cThread, private Uncopyable { public: - cDxr3OutputThread(cDxr3Interface& dxr3Device, cDxr3SyncBuffer& buffer); + cDxr3OutputThread(cDxr3SyncBuffer& buffer); virtual ~cDxr3OutputThread() { m_buffer.Stop(); Cancel(3); @@ -43,7 +43,7 @@ public: protected: virtual void Action() = 0; - cDxr3Interface& m_dxr3Device; + cDxr3Interface *m_dxr3Device; cDxr3SyncBuffer& m_buffer; bool m_bNeedResync; }; @@ -51,7 +51,7 @@ protected: // ================================== class cDxr3AudioOutThread : public cDxr3OutputThread { public: - cDxr3AudioOutThread(cDxr3Interface& dxr3Device, cDxr3SyncBuffer& buffer); + cDxr3AudioOutThread(cDxr3SyncBuffer& buffer); void setAudio(iAudio *a) { audioOutput = a; } @@ -68,7 +68,7 @@ private: // ================================== class cDxr3VideoOutThread : public cDxr3OutputThread { public: - cDxr3VideoOutThread(cDxr3Interface& dxr3Device, cDxr3SyncBuffer& buffer); + cDxr3VideoOutThread(cDxr3SyncBuffer& buffer); protected: void Action(); -- cgit v1.2.3