📄 bdirectsoundbuffer.h
字号:
/*
Author: Bear
This source is free to anybody.
If you have any problem with this or some advice to me, please:
mailto: heyang22118952.student@sina.com
or yang45249.student@sina.com
or you can contact me through my QQ: 261570581
Welcome to discuss game programming techniques with me :)
And I like to play games!
*/
#pragma once
#include "BHeader.h"
#include "BWaveFile.h"
class BDLL_API BDirectSoundBuffer
{
public:
BDirectSoundBuffer(LPDIRECTSOUNDBUFFER lpdsb);
~BDirectSoundBuffer(void);
bool LoadWaveFile(BWaveFile* waveFile);
bool Play(bool bLoop);
void Stop(void);
void SetVolume(int vol);
void SetFrequency(int freq);
void SetPan(int db);
private:
LPDIRECTSOUNDBUFFER m_lpdsb;
bool loaded;
};
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -