1// **************************************************************************** 2// 3// CGina24DspCommObject.H 4// 5// Include file for EchoGals generic driver Gina24 DSP interface class. 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 13// 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. 18// 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. 23// 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 27// 28// **************************************************************************** 29 30#ifndef _GINA24DSPCOMMOBJECT_ 31#define _GINA24DSPCOMMOBJECT_ 32 33#include "CGMLDspCommObject.h" 34 35class CGina24DspCommObject : public CGMLDspCommObject 36{ 37public: 38 // 39 // Construction/destruction 40 // 41 CGina24DspCommObject( PDWORD pdwRegBase, PCOsSupport pOsSupport ); 42 virtual ~CGina24DspCommObject(); 43 44 // 45 // Set the DSP sample rate. 46 // Return rate that was set, -1 if error 47 // 48 virtual DWORD SetSampleRate( DWORD dwNewSampleRate ); 49 // 50 // Send current setting to DSP & return what it is 51 // 52 virtual DWORD SetSampleRate() 53 { return( SetSampleRate( GetSampleRate() ) ); } 54 55 // 56 // Set input clock 57 // 58 virtual ECHOSTATUS SetInputClock(WORD wClock); 59 60 // 61 // Card information 62 // 63 virtual WORD GetCardType() 64 { return( GINA24 ); } 65 66protected: 67 68 virtual BOOL LoadASIC(); 69 using CGMLDspCommObject::LoadASIC; 70 71 BYTE * m_pbyAsic; // Current ASIC code 72 73}; // class CGina24DspCommObject 74 75typedef CGina24DspCommObject * PCGina24DspCommObject; 76 77#endif 78 79// **** Gina24DspCommObject.h **** 80