⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 wavecommon.cpp

📁 CIRRUS 93XX系列windows mobile 6.0 BSP
💻 CPP
字号:
//**********************************************************************
//                                                                      
// Filename: wavecommon.cpp
//                                                                      
// Description: Contians routines common to wavein and wave out.
//
// 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 2005, All Rights Reserved                       
//                                                                      
//**********************************************************************

#include "wavecommon.h"



//****************************************************************************
// MarkAllAsDone
//****************************************************************************
// 
// 
//
void MarkAllAsDone( PWAVEHDR  pWave)
{
    while (pWave != NULL) 
    {
        MARK_BUFFER_DONE(pWave);
        pWave = pWave->lpNext;
    }   
}

//****************************************************************************
// MarkAllAsNotInLoop
//****************************************************************************
// 
// 
//
void MarkAllAsNotInLoop( PWAVEHDR    pWave)
{
    while (pWave != NULL) {
        MARK_BUFFER_NOT_INLOOP(pWave);
        pWave = pWave->lpNext;
    }   
}


//****************************************************************************
// MarkAllAsFull
//****************************************************************************
// 
// 
//
void MarkAllAsFull( PWAVEHDR    pWave)
{
    while (pWave != NULL) 
    {
        MARK_BUFFER_FULL(pWave);
        pWave = pWave->lpNext;
    }   
}

//****************************************************************************
// MarkFullAsDone
//****************************************************************************
// 
// 
//
void MarkFullAsDone(PWAVEHDR  pWave)
{
    while (pWave != NULL) 
    {
        if (IS_BUFFER_FULL(pWave))  
        {
            MARK_BUFFER_DONE(pWave);
        }
        pWave = pWave->lpNext;
    }   
}


⌨️ 快捷键说明

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