BPicture: Fix archive constructor.
[haiku.git] / src / add-ons / kernel / drivers / audio / echo / generic / CGMLDspCommObject.h
bloba48a4dd566bb45c35c1cd4ee48dc2c849228c8da
1 // ****************************************************************************
2 //
3 // CGMLDspCommObject.H
4 //
5 // Common DSP interface class for Gina24, Layla24, and Mona
6 //
7 // ----------------------------------------------------------------------------
8 //
9 // This file is part of Echo Digital Audio's generic driver library.
10 // Copyright Echo Digital Audio Corporation (c) 1998 - 2005
11 // All rights reserved
12 // www.echoaudio.com
14 // This library is free software; you can redistribute it and/or
15 // modify it under the terms of the GNU Lesser General Public
16 // License as published by the Free Software Foundation; either
17 // version 2.1 of the License, or (at your option) any later version.
19 // This library is distributed in the hope that it will be useful,
20 // but WITHOUT ANY WARRANTY; without even the implied warranty of
21 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
22 // Lesser General Public License for more details.
24 // You should have received a copy of the GNU Lesser General Public
25 // License along with this library; if not, write to the Free Software
26 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
28 // ****************************************************************************
30 #ifndef _GMLDSPCOMMOBJECT_
31 #define _GMLDSPCOMMOBJECT_
33 class CGMLDspCommObject : public CDspCommObject
35 public:
36 CGMLDspCommObject( PDWORD pdwRegBase, PCOsSupport pOsSupport )
37 : CDspCommObject(pdwRegBase, pOsSupport)
41 virtual ~CGMLDspCommObject() {}
44 // Get mask of all supported digital modes
45 // (See ECHOCAPS_HAS_DIGITAL_MODE_??? defines in EchoGalsXface.h)
47 virtual DWORD GetDigitalModes()
48 { return( ECHOCAPS_HAS_DIGITAL_MODE_SPDIF_RCA |
49 ECHOCAPS_HAS_DIGITAL_MODE_SPDIF_OPTICAL |
50 ECHOCAPS_HAS_DIGITAL_MODE_ADAT ); }
53 // Set digital mode
55 virtual ECHOSTATUS SetDigitalMode
57 BYTE byNewMode
61 // Set get S/PDIF output format
63 virtual void SetProfessionalSpdif( BOOL bNewStatus );
65 virtual BOOL IsProfessionalSpdif()
66 { return( m_bProfessionalSpdif ); }
69 // Get/Set S/PDIF out non-audio status bit
71 virtual BOOL IsSpdifOutNonAudio()
73 return m_bNonAudio;
76 virtual void SetSpdifOutNonAudio(BOOL bNonAudio);
78 protected:
80 // Write the Gina24/Mona/Layla24 control reg
82 virtual ECHOSTATUS WriteControlReg( DWORD dwControlReg, BOOL fForceWrite = FALSE );
85 // Member variables
87 BOOL m_bProfessionalSpdif;
88 BOOL m_bNonAudio;
90 }; // class CGMLDspCommObject
92 #endif // _GMLDSPCOMMOBJECT_
94 // **** GMLDspCommObject.h ****