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

📄 storewav.h

📁 Intel开发的IPP库的应用例程
💻 H
字号:
/*
//
//               INTEL CORPORATION PROPRIETARY INFORMATION
//  This software is supplied under the terms of a license agreement or
//  nondisclosure agreement with Intel Corporation and may not be copied
//  or disclosed except in accordance with the terms of that agreement.
//        Copyright(c) 1999-2006 Intel Corporation. All Rights Reserved.
//
*/

// StoreWav.h: interface for the CStoreWav class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_STOREWAV_H__A8277437_ED93_4FCD_AB1F_300F8D4BA282__INCLUDED_)
#define AFX_STOREWAV_H__A8277437_ED93_4FCD_AB1F_300F8D4BA282__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include <mmsystem.h>

#include "Func.h"

class CippsDemoDoc;

class CStoreWav
{
public:
   CStoreWav(CippsDemoDoc* pDoc) : m_pDoc(pDoc), m_hFile(NULL), m_bSave(FALSE) 
   { memset(&m_Format,0,sizeof(WAVEFORMATEX));}
   virtual ~CStoreWav() {}

   BOOL Serialize(CFile* pFile, BOOL isStoring);
protected:
   CippsDemoDoc*  m_pDoc;
   BOOL      m_bSave;
   CMyString m_FilePath;
   HMMIO         m_hFile; 
   WAVEFORMATEX  m_Format;

   void Save();
   void Load();
   void Close();
   void Error(CString message);
   void Error(MMIOINFO& ioInfo);
   ppType TypeFromFormat();
   void TypeToFormat(ppType type);
   int  LengthFromFormat(DWORD dataSize);
};

#endif // !defined(AFX_STOREWAV_H__A8277437_ED93_4FCD_AB1F_300F8D4BA282__INCLUDED_)

⌨️ 快捷键说明

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