BPicture: Fix archive constructor.
[haiku.git] / src / add-ons / kernel / drivers / audio / echo / generic / CGdDspCommObject.h
blob41d423ec2dbdc595fb9b64b17fda63c5f55386f6
1 // ****************************************************************************
2 //
3 // CGdDspCommObject.H
4 //
5 // Darla20 and Gina20 are very similar; this class is used for both.
6 // CGinaDspCommObject and CDarlaDspCommObject dervie from this class, in
7 // turn.
8 //
9 // ----------------------------------------------------------------------------
11 // ----------------------------------------------------------------------------
13 // This file is part of Echo Digital Audio's generic driver library.
14 // Copyright Echo Digital Audio Corporation (c) 1998 - 2005
15 // All rights reserved
16 // www.echoaudio.com
18 // This library is free software; you can redistribute it and/or
19 // modify it under the terms of the GNU Lesser General Public
20 // License as published by the Free Software Foundation; either
21 // version 2.1 of the License, or (at your option) any later version.
23 // This library is distributed in the hope that it will be useful,
24 // but WITHOUT ANY WARRANTY; without even the implied warranty of
25 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
26 // Lesser General Public License for more details.
28 // You should have received a copy of the GNU Lesser General Public
29 // License along with this library; if not, write to the Free Software
30 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
32 // ****************************************************************************
34 #ifndef _GDDSPCOMMOBJECT_
35 #define _GDDSPCOMMOBJECT_
37 #include "CDspCommObject.h"
40 class CGdDspCommObject : public CDspCommObject
42 public:
44 // Construction/destruction
46 CGdDspCommObject( PDWORD pdwRegBase, PCOsSupport pOsSupport );
47 virtual ~CGdDspCommObject();
50 // Set the DSP sample rate.
51 // Return rate that was set, -1 if error
53 virtual DWORD SetSampleRate( DWORD dwNewSampleRate );
55 // Send current setting to DSP & return what it is
57 virtual DWORD SetSampleRate()
58 { return SetSampleRate( GetSampleRate() ); }
61 // Put the card to sleep
63 virtual ECHOSTATUS GoComatose();
65 protected:
66 BYTE m_byGDCurrentSpdifStatus;
67 BYTE m_byGDCurrentClockState;
70 // Called after load firmware to restore old gains, meters on, monitors, etc.
71 // No error checking is done here.
73 virtual void RestoreDspSettings();
75 // SelectGinaDarlaSpdifStatus
76 BYTE SelectGinaDarlaSpdifStatus( DWORD dwNewSampleRate );
78 }; // class CGdDspCommObject
80 typedef CGdDspCommObject * PCGdDspCommObject;
82 #endif
84 // **** GdDspCommObject.h ****