#include <Sound.h>
Definition at line 13 of file Sound.h.
◆ Sound()
| IncrementalEngine::Sound::Sound |
( |
std::string |
filename | ) |
|
Definition at line 8 of file Sound.cpp.
13 assert(
"The sound format you tried to load is incompatible." && formatCheck);
◆ ~Sound()
| IncrementalEngine::Sound::~Sound |
( |
| ) |
|
|
virtual |
◆ Init()
| HRESULT IncrementalEngine::Sound::Init |
( |
| ) |
|
Definition at line 21 of file Sound.cpp.
27 alGenBuffers(1, &buffer);
29 if ((error = alGetError()) != AL_NO_ERROR)
31 alDeleteBuffers(1, &buffer);
32 return CO_E_ERRORINAPP;
38 alDeleteBuffers(1, &buffer);
39 return CO_E_ERRORINAPP;
46 buffer = alutCreateBufferFromFile(
_filename.c_str());
48 if ((error = alGetError()) != AL_NO_ERROR)
50 alDeleteBuffers(1, &buffer);
51 return CO_E_ERRORINAPP;
◆ _filename
| std::string IncrementalEngine::Sound::_filename |
|
private |
◆ Buffer
| ALuint IncrementalEngine::Sound::Buffer |