BPicture: Fix archive constructor.
[haiku.git] / src / add-ons / kernel / drivers / audio / echo / generic / CEchoGalsMTC.h
blob74ea0c2c69c81658108a49014c91c5dd24e8dd59
1 // ****************************************************************************
2 //
3 // CEchoGalsMTC.h
4 //
5 // CEchoGalsMTC is used to add MIDI time code sync to the base
6 // CEchoGals class. CEchoGalsMTC derives from CEchoGals; CLayla and
7 // CLayla24 derive in turn from CEchoGalsMTC.
8 //
9 // Set editor tabs to 3 for your viewing pleasure.
11 // This file is part of Echo Digital Audio's generic driver library.
12 // Copyright Echo Digital Audio Corporation (c) 1998 - 2005
13 // All rights reserved
14 // www.echoaudio.com
16 // This library is free software; you can redistribute it and/or
17 // modify it under the terms of the GNU Lesser General Public
18 // License as published by the Free Software Foundation; either
19 // version 2.1 of the License, or (at your option) any later version.
21 // This library is distributed in the hope that it will be useful,
22 // but WITHOUT ANY WARRANTY; without even the implied warranty of
23 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
24 // Lesser General Public License for more details.
26 // You should have received a copy of the GNU Lesser General Public
27 // License along with this library; if not, write to the Free Software
28 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
30 // ****************************************************************************
32 // Prevent problems with multiple includes
33 #ifndef _CECHOGALSMTC_H_
34 #define _CECHOGALSMTC_H_
36 #include "CEchoGals.h"
38 class CEchoGalsMTC : public CEchoGals
40 public:
42 // Construction/destruction
44 CEchoGalsMTC( PCOsSupport pOsSupport );
45 virtual ~CEchoGalsMTC();
48 // Get and set input clock
50 virtual ECHOSTATUS SetInputClock(WORD wClock);
51 virtual ECHOSTATUS GetInputClock(WORD &wClock);
54 // Get and set sample rate
56 virtual ECHOSTATUS SetAudioSampleRate
58 DWORD dwSampleRate
61 virtual ECHOSTATUS GetAudioSampleRate
63 PDWORD pdwSampleRate
67 // Update the sample rate based on received MTC data
69 virtual void ServiceMtcSync();
71 protected:
73 WORD m_wInputClock;
75 }; // class CEchoGalsMTC
78 #endif // _CECHOGALSMTC_H_
80 // *** CEchoGalsMTC.H ***