1 // **************************************************************************** 2 // 3 // CDarla.H 4 // 5 // Include file for interfacing with the CDarla generic driver class 6 // Set editor tabs to 3 for your viewing pleasure. 7 // 8 // ---------------------------------------------------------------------------- 9 // 10 // Copyright Echo Digital Audio Corporation (c) 1998 - 2002 11 // All rights reserved 12 // www.echoaudio.com 13 // 14 // Permission is hereby granted, free of charge, to any person obtaining a 15 // copy of this software and associated documentation files (the 16 // "Software"), to deal with the Software without restriction, including 17 // without limitation the rights to use, copy, modify, merge, publish, 18 // distribute, sublicense, and/or sell copies of the Software, and to 19 // permit persons to whom the Software is furnished to do so, subject to 20 // the following conditions: 21 // 22 // - Redistributions of source code must retain the above copyright 23 // notice, this list of conditions and the following disclaimers. 24 // 25 // - Redistributions in binary form must reproduce the above copyright 26 // notice, this list of conditions and the following disclaimers in the 27 // documentation and/or other materials provided with the distribution. 28 // 29 // - Neither the name of Echo Digital Audio, nor the names of its 30 // contributors may be used to endorse or promote products derived from 31 // this Software without specific prior written permission. 32 // 33 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 34 // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 35 // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 36 // IN NO EVENT SHALL THE CONTRIBUTORS OR COPYRIGHT HOLDERS BE LIABLE FOR 37 // ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, 38 // TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE 39 // SOFTWARE OR THE USE OR OTHER DEALINGS WITH THE SOFTWARE. 40 // 41 // **************************************************************************** 42 43 // Prevent problems with multiple includes 44 #ifndef _DARLAOBJECT_ 45 #define _DARLAOBJECT_ 46 47 #include "CEchoGals.h" 48 #include "CDarlaDspCommObject.h" 49 50 // 51 // Class used for interfacing with the Darla audio card. 52 // 53 class CDarla : public CEchoGals 54 { 55 public: 56 // 57 // Construction/destruction 58 // 59 CDarla( PCOsSupport pOsSupport ); 60 61 virtual ~CDarla(); 62 63 // 64 // Setup & initialization methods 65 // 66 67 virtual ECHOSTATUS InitHw(); 68 69 // 70 // Audio Interface methods 71 // 72 73 virtual ECHOSTATUS QueryAudioSampleRate 74 ( 75 DWORD dwSampleRate 76 ); 77 78 // 79 // Overload new & delete so memory for this object is allocated from non-paged memory. 80 // 81 PVOID operator new( size_t Size ); 82 VOID operator delete( PVOID pVoid ); 83 84 protected: 85 // 86 // Get access to the appropriate DSP comm object 87 // 88 PCDarlaDspCommObject GetDspCommObject() 89 { return( (PCDarlaDspCommObject) m_pDspCommObject ); } 90 }; // class CDarla 91 92 typedef CDarla * PCDarla; 93 94 #endif 95 96 // *** CDarla.H *** 97