diff options
Diffstat (limited to 'src/audio/buffers.cc')
-rw-r--r-- | src/audio/buffers.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/audio/buffers.cc b/src/audio/buffers.cc index f7fbbb5..5ea1b05 100644 --- a/src/audio/buffers.cc +++ b/src/audio/buffers.cc @@ -23,7 +23,7 @@ void Buffers::init() alGenBuffers(MAXBUFFERS, buffers); if ((error = alGetError()) != AL_NO_ERROR) { - con_warn << "Error " << error << " initializing OpenAL buffers!" << std::endl; + con_warn << "Error " << std::hex << error << " initializing OpenAL buffers!" << std::endl; return; } } @@ -80,8 +80,9 @@ size_t Buffers::load(std::string name) size_t id = index; alBufferData(buffers[id], format, pcm->data(), pcm->size(), pcm->samplerate()); - if (alGetError()) + if (alGetError()!= AL_NO_ERROR) { con_warn << "Error loading PCM data " << name << std::endl; + } registry[name] = id; index++; |