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

📄 csoundinterface.h

📁 Visual C++ 游戏开发与设计实例 源代码(所有)
💻 H
字号:
// CMAIN LIB - APPLICATION AND DIRECT WRAPPER
//
// Written by Mauricio Teichmann Ritter
//
// Copyright (C) 2002, Brazil. All rights reserved.
// 
//

// cSoundInterface.h: interface for the cSoundInterface class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_CSOUNDINTERFACE_H__4ED24258_B172_4F98_86AD_DCA753E2E6E7__INCLUDED_)
#define AFX_CSOUNDINTERFACE_H__4ED24258_B172_4F98_86AD_DCA753E2E6E7__INCLUDED_

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

#include <mmsystem.h>
#include <dxerr8.h>
#include <dsound.h>

class cSoundInterface  
{
protected:
	static LPDIRECTSOUND8 m_pDS;
	static LPDIRECTSOUNDBUFFER m_pDSBPrimary;
public:
	void SetListernerPosition(float fX, float fY, float fZ);
	void Destroy();
	LPDIRECTSOUND8 GetDirectSound();
	cSoundInterface();

	HRESULT Initialize( HWND  hWnd, DWORD dwCoopLevel, DWORD dwPrimaryChannels = 2, DWORD dwPrimaryFreq = 22050, DWORD dwPrimaryBitRate = 16);
	HRESULT SetPrimaryBufferFormat( DWORD dwPrimaryChannels, DWORD dwPrimaryFreq, DWORD dwPrimaryBitRate );
	virtual ~cSoundInterface();

};

#endif // !defined(AFX_CSOUNDINTERFACE_H__4ED24258_B172_4F98_86AD_DCA753E2E6E7__INCLUDED_)

⌨️ 快捷键说明

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