xref: /haiku/src/add-ons/kernel/drivers/audio/echo/generic/CDarlaDspCommObject.cpp (revision 626bc4bee107897c38c596c3440cf0a74b4b9c40)
1 // ****************************************************************************
2 //
3 //  	CDarlaDspCommObject.cpp
4 //
5 //		Implementation file for Darla20 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 #include "CEchoGals.h"
31 #include "CDarlaDspCommObject.h"
32 
33 #include "Darla20DSP.c"
34 
35 
36 /****************************************************************************
37 
38 	Construction and destruction
39 
40  ****************************************************************************/
41 
42 //===========================================================================
43 //
44 // Constructor
45 //
46 //===========================================================================
47 
CDarlaDspCommObject(PDWORD pdwRegBase,PCOsSupport pOsSupport)48 CDarlaDspCommObject::CDarlaDspCommObject
49 (
50 	PDWORD		pdwRegBase,				// Virtual ptr to DSP registers
51 	PCOsSupport	pOsSupport
52 ) : CGdDspCommObject( pdwRegBase, pOsSupport )
53 {
54 	strcpy( m_szCardName, "Darla" );
55 	m_pdwDspRegBase = pdwRegBase;		// Virtual addr DSP's register base
56 
57 	m_wNumPipesOut = 8;
58 	m_wNumPipesIn = 2;
59 	m_wNumBussesOut = 8;
60 	m_wNumBussesIn = 2;
61 	m_wFirstDigitalBusOut = 8;
62 	m_wFirstDigitalBusIn = 2;
63 
64 	m_fHasVmixer = FALSE;
65 
66 	m_wNumMidiOut = 0;					// # MIDI out channels
67 	m_wNumMidiIn = 0;						// # MIDI in  channels
68 
69 	m_pwDspCodeToLoad = pwDarla20DSP;
70 
71 	//
72 	// Since this card has no ASIC, mark it as loaded so everything works OK
73 	//
74 	m_bASICLoaded = TRUE;
75 
76 }	// CDarlaDspCommObject::CDarlaDspCommObject( DWORD dwPhysRegBase )
77 
78 
79 //===========================================================================
80 //
81 // Destructor
82 //
83 //===========================================================================
84 
~CDarlaDspCommObject()85 CDarlaDspCommObject::~CDarlaDspCommObject()
86 {
87 }	// CDarlaDspCommObject::~CDarlaDspCommObject()
88 
89 // **** DarlaDspCommObject.cpp ****
90