13895766dSshatty // **************************************************************************** 23895766dSshatty // 33895766dSshatty // CLayla24.h 43895766dSshatty // 53895766dSshatty // Include file for interfacing with the CLayla24 generic driver class 63895766dSshatty // Set editor tabs to 3 for your viewing pleasure. 73895766dSshatty // 8*be188ae1SJérôme Duval // ---------------------------------------------------------------------------- 9*be188ae1SJérôme Duval // 10626bc4beSJérôme Duval // This file is part of Echo Digital Audio's generic driver library. 11626bc4beSJérôme Duval // Copyright Echo Digital Audio Corporation (c) 1998 - 2005 12c2ddc71cSJérôme Duval // All rights reserved 13c2ddc71cSJérôme Duval // www.echoaudio.com 14c2ddc71cSJérôme Duval // 15626bc4beSJérôme Duval // This library is free software; you can redistribute it and/or 16626bc4beSJérôme Duval // modify it under the terms of the GNU Lesser General Public 17626bc4beSJérôme Duval // License as published by the Free Software Foundation; either 18626bc4beSJérôme Duval // version 2.1 of the License, or (at your option) any later version. 19c2ddc71cSJérôme Duval // 20626bc4beSJérôme Duval // This library is distributed in the hope that it will be useful, 21c2ddc71cSJérôme Duval // but WITHOUT ANY WARRANTY; without even the implied warranty of 22626bc4beSJérôme Duval // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 23626bc4beSJérôme Duval // Lesser General Public License for more details. 24c2ddc71cSJérôme Duval // 25626bc4beSJérôme Duval // You should have received a copy of the GNU Lesser General Public 26626bc4beSJérôme Duval // License along with this library; if not, write to the Free Software 27626bc4beSJérôme Duval // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 283895766dSshatty // 293895766dSshatty // **************************************************************************** 303895766dSshatty 313895766dSshatty // Prevent problems with multiple includes 323895766dSshatty #ifndef _LAYLA24OBJECT_ 333895766dSshatty #define _LAYLA24OBJECT_ 343895766dSshatty 35c2ddc71cSJérôme Duval #include "CEchoGalsMTC.h" 363895766dSshatty #include "CLayla24DspCommObject.h" 373895766dSshatty 383895766dSshatty 393895766dSshatty // 403895766dSshatty // Class used for interfacing with the Layla24 audio card. 413895766dSshatty // 42c2ddc71cSJérôme Duval class CLayla24 : public CEchoGalsMTC 433895766dSshatty { 443895766dSshatty public: 453895766dSshatty // 463895766dSshatty // Construction/destruction 473895766dSshatty // 483895766dSshatty CLayla24( PCOsSupport pOsSupport ); 493895766dSshatty virtual ~CLayla24(); 503895766dSshatty 513895766dSshatty // 523895766dSshatty // Setup & initialization methods 533895766dSshatty // 543895766dSshatty virtual ECHOSTATUS InitHw(); 553895766dSshatty 563895766dSshatty // 573895766dSshatty // Adapter information methods 583895766dSshatty // 593895766dSshatty virtual ECHOSTATUS GetCapabilities 603895766dSshatty ( 613895766dSshatty PECHOGALS_CAPS pCapabilities 623895766dSshatty ); 633895766dSshatty 643895766dSshatty // 653895766dSshatty // Audio interface methods 663895766dSshatty // 673895766dSshatty virtual ECHOSTATUS QueryAudioSampleRate 683895766dSshatty ( 693895766dSshatty DWORD dwSampleRate 703895766dSshatty ); 713895766dSshatty 723895766dSshatty // 733895766dSshatty // Get a bitmask of all the clocks the hardware is currently detecting 743895766dSshatty // 753895766dSshatty virtual ECHOSTATUS GetInputClockDetect(DWORD &dwClockDetectBits); 763895766dSshatty 773895766dSshatty // 783895766dSshatty // Overload new & delete so memory for this object is allocated from non-paged memory. 793895766dSshatty // 803895766dSshatty PVOID operator new( size_t Size ); 813895766dSshatty VOID operator delete( PVOID pVoid ); 823895766dSshatty 833895766dSshatty protected: 843895766dSshatty // 853895766dSshatty // Get access to the appropriate DSP comm object 863895766dSshatty // 873895766dSshatty PCLayla24DspCommObject GetDspCommObject() 883895766dSshatty { return( (PCLayla24DspCommObject) m_pDspCommObject ); } 893895766dSshatty 903895766dSshatty }; // class CLayla24 913895766dSshatty 923895766dSshatty typedef CLayla24 * PCLayla24; 933895766dSshatty 943895766dSshatty #endif 953895766dSshatty 963895766dSshatty // *** Layla24.H *** 97