sound.h

来自「c++程序」· C头文件 代码 · 共 37 行

H
37
字号
// Sound.h: Schnittstelle f黵 die Klasse CSound.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_SOUND_H__407639E3_A223_11D1_8F4C_907673C10500__INCLUDED_)
#define AFX_SOUND_H__407639E3_A223_11D1_8F4C_907673C10500__INCLUDED_

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

#include <mmsystem.h>	// Multimedia functions and structures
#include <direct.h>		// DirectX defines (many of dsound structures)
#include <dsound.h>		// Direct sound Header
#include <stdio.h>		// File I/O routines

class CSound  
{
public:
	CSound();
	virtual ~CSound();
private:
/*
	// Direct sound pointers. These are global to this module and have a life time
	// for the duration of the program.
	LPDIRECTSOUND pDirectSoundAPI = NULL;
	LPDIRECTSOUNDBUFFER pGrunt = NULL;
	LPDIRECTSOUNDBUFFER pScore = NULL;

	// Make changes here to modify file names for the background music and the 
	// sound effects files
	char *szGruntFile = "grunt.wav";
*/
};

#endif // !defined(AFX_SOUND_H__407639E3_A223_11D1_8F4C_907673C10500__INCLUDED_)

⌨️ 快捷键说明

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