📄 codecinterface.h
字号:
//**********************************************************************
//
// Filename: codecinterface.h
//
// Description: Codec Base Class
//
// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
// ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO
// THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
// PARTICULAR PURPOSE.
//
// Use of this source code is subject to the terms of the Cirrus end-user
// license agreement (EULA) under which you licensed this SOFTWARE PRODUCT.
// If you did not accept the terms of the EULA, you are not authorized to
// use this source code. For a copy of the EULA, please see the
// EULA.RTF on your install media.
//
// Copyright(c) Cirrus Logic Corporation 2002, All Rights Reserved
//
//**********************************************************************
#ifndef _H_CODEC_INTERFACE
#define _H_CODEC_INTERFACE
class CodecInterface
{
public:
CodecInterface(void):m_bPlaybackOpened(FALSE), m_bRecordOpened(FALSE){};
virtual MMRESULT Initialize(void ) = 0;
virtual MMRESULT SetVolume
(
ULONG ulRightVolume,
ULONG ulLeftVolume,
ULONG ulChannel
) = 0;
virtual MMRESULT SetRecordSampleRate(ULONG ulFrequency, ULONG ulChannel) = 0;
virtual MMRESULT SetPlaybackSampleRate(ULONG ulFrequency, ULONG ulChannel) = 0;
virtual BOOL HasSRC(void) = 0;
virtual MMRESULT StartRecord(ULONG ulChannel) = 0;
virtual MMRESULT StartPlayback(ULONG ulChannel) = 0;
virtual MMRESULT StopPlayback(ULONG ulChannel) = 0;
virtual MMRESULT StopRecord(ULONG ulChannel) = 0;
virtual ULONG GetDmaPort(void) = 0;
virtual ULONG DmaSampleSize(void) = 0;
virtual ~CodecInterface(void) = 0 {} ;
BOOL m_bPlaybackOpened;
BOOL m_bRecordOpened;
};
#endif // _H_CODEC_INTERFACE
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -