mixint.h

来自「CIRRUS 公司EP93XX系列CPU的WINCE下的BSP」· C头文件 代码 · 共 83 行

H
83
字号
//**********************************************************************
//                                                                      
// Filename: mixint.h
//                                                                      
// Description: Contains a generic mixer interface 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 
// LICENSE.RTF on your install media.
//
// Copyright(c) Cirrus Logic Corporation 2002, All Rights Reserved                       
//                                                                      
//**********************************************************************

#ifndef _MIX_INTERFACE
#define _MIX_INTERFACE

typedef               DWORD             MIXHANDLE;
typedef struct _tagMCB MIXER_CALLBACK, * PMIXER_CALLBACK;


class MixerInterface
{
    public:
        virtual BOOL  MixerEnabled(void)
        {
            return FALSE;
        }

        virtual DWORD   GetNumDevs(void) 
        { 
            return 1;
        };
        virtual MMRESULT GetMixerCaps(PMIXERCAPS pMixerCaps)
        {
            return MMSYSERR_ERROR;
        };

        virtual MMRESULT OpenMixerHandle(PDWORD phMixer, PMIXEROPENDESC pMOD, DWORD dwFlags)
        {
            return MMSYSERR_ERROR;
        };

        virtual MMRESULT  CloseMixerHandle( MIXHANDLE mxh)
        {
            return MMSYSERR_ERROR;
        }

        virtual MMRESULT GetMixerLineControls ( PMIXERLINECONTROLS pQuery, DWORD dwFlags)
        {
            return MMSYSERR_ERROR;
        }

        virtual MMRESULT GetMixerLineInfo( PMIXERLINE pQuery, DWORD dwFlags)
        {
            return MMSYSERR_ERROR;
        }

        virtual MMRESULT GetMixerControlDetails( PMIXERCONTROLDETAILS pQuery, DWORD dwFlags)
        {
            return MMSYSERR_ERROR;
        }

        virtual MMRESULT  SetMixerControlDetails( PMIXERCONTROLDETAILS pDetail, DWORD dwFlags)
        {
            return MMSYSERR_ERROR;
        }
};

class I2SMixer: public MixerInterface
{

};

#endif // _MIX_INTERFACE

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?