📄 sound.cpp
字号:
// AudioEngineSound.cpp: implementation of the CSound class.
//
//////////////////////////////////////////////////////////////////////
#include "Sound.h"
#include "AudioManager.h"
#include <sstream>
using namespace std;
namespace AudioEngine {
CSoundPtr::CSoundPtr(CSound* p) : CRefCountPtr<CSound>(p)
{
stringstream str;
if (p) {
str << "CSoundPtr::CSoundPtr: constructed for pointer " << p <<
" (count = " << itsCounter->count << ")..." << endl;
OutputDebugString(str.str().c_str());
}
}
void CSoundPtr::Release()
{
stringstream str;
if (itsCounter) {
str << "CSoundPtr::Release(): pointer " << itsCounter->ptr <<
" (count = " << itsCounter->count << ")..." << endl;
OutputDebugString(str.str().c_str());
}
}
CSound::CSound(CAudioManager *mgr)
{
m_Manager = mgr;
}
CSound::~CSound()
{
}
}; // namespace
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -