13895766dSshatty // **************************************************************************** 23895766dSshatty // 33895766dSshatty // CMia.H 43895766dSshatty // 53895766dSshatty // Include file for interfacing with the CMia generic driver class 63895766dSshatty // Set editor tabs to 3 for your viewing pleasure. 73895766dSshatty // 83895766dSshatty // ---------------------------------------------------------------------------- 93895766dSshatty // 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 123895766dSshatty // All rights reserved 133895766dSshatty // www.echoaudio.com 143895766dSshatty // 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. 193895766dSshatty // 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. 243895766dSshatty // 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 _MIAOBJECT_ 333895766dSshatty #define _MIAOBJECT_ 343895766dSshatty 35c2ddc71cSJérôme Duval #include "CEchoGalsVmixer.h" 363895766dSshatty #include "CMiaDspCommObject.h" 373895766dSshatty 383895766dSshatty // 393895766dSshatty // Class used for interfacing with the Mia audio card. 403895766dSshatty // 41c2ddc71cSJérôme Duval class CMia : public CEchoGalsVmixer 423895766dSshatty { 433895766dSshatty public: 443895766dSshatty // 453895766dSshatty // Construction/destruction 463895766dSshatty // 473895766dSshatty CMia( PCOsSupport pOsSupport ); 483895766dSshatty 493895766dSshatty virtual ~CMia(); 503895766dSshatty 513895766dSshatty // 523895766dSshatty // Setup & initialization methods 533895766dSshatty // 543895766dSshatty 553895766dSshatty virtual ECHOSTATUS InitHw(); 563895766dSshatty 573895766dSshatty // 583895766dSshatty // Return the capabilities of this card; card type, card name, 593895766dSshatty // # analog inputs, # analog outputs, # digital channels, 603895766dSshatty // # MIDI ports and supported clocks. 613895766dSshatty // See ECHOGALS_CAPS definition above. 623895766dSshatty // 633895766dSshatty virtual ECHOSTATUS GetCapabilities 643895766dSshatty ( 653895766dSshatty PECHOGALS_CAPS pCapabilities 663895766dSshatty ); 673895766dSshatty 683895766dSshatty // 693895766dSshatty // Audio Interface methods 703895766dSshatty // 713895766dSshatty virtual ECHOSTATUS QueryAudioSampleRate 723895766dSshatty ( 733895766dSshatty DWORD dwSampleRate 743895766dSshatty ); 753895766dSshatty 76*4dd9e436SJérôme Duval virtual void QuerySampleRateRange(DWORD &dwMinRate,DWORD &dwMaxRate); 77*4dd9e436SJérôme Duval 783895766dSshatty // 793895766dSshatty // Get a bitmask of all the clocks the hardware is currently detecting 803895766dSshatty // 813895766dSshatty virtual ECHOSTATUS GetInputClockDetect(DWORD &dwClockDetectBits); 823895766dSshatty 833895766dSshatty // 843895766dSshatty // Overload new & delete so memory for this object is allocated from 853895766dSshatty // non-paged memory. 863895766dSshatty // 873895766dSshatty PVOID operator new( size_t Size ); 883895766dSshatty VOID operator delete( PVOID pVoid ); 893895766dSshatty 903895766dSshatty protected: 913895766dSshatty // 923895766dSshatty // Get access to the appropriate DSP comm object 933895766dSshatty // GetDspCommObject()943895766dSshatty PCMiaDspCommObject GetDspCommObject() 953895766dSshatty { return( (PCMiaDspCommObject) m_pDspCommObject ); } 96c2ddc71cSJérôme Duval 973895766dSshatty }; // class CMia 983895766dSshatty 99c2ddc71cSJérôme Duval 1003895766dSshatty typedef CMia * PCMia; 1013895766dSshatty 1023895766dSshatty #endif 1033895766dSshatty 1043895766dSshatty // *** Mia.H *** 105