📄 sound.h
字号:
// 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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -