diff options
author | McCabe Maxsted | 2009-04-17 20:22:41 -0700 |
---|---|---|
committer | McCabe Maxsted | 2009-04-17 20:22:41 -0700 |
commit | 8bc9d12fcc07e888c10cd0746d2a562c09d3a65a (patch) | |
tree | 145a6baf1e5456ca6e289f879ab6325e46161b0a /linden/indra/llaudio/audioengine_openal.cpp | |
parent | Fixed merge conflicts (diff) | |
parent | Don't use LL_ERRS, it makes the viewer abort! (diff) | |
download | meta-impy-8bc9d12fcc07e888c10cd0746d2a562c09d3a65a.zip meta-impy-8bc9d12fcc07e888c10cd0746d2a562c09d3a65a.tar.gz meta-impy-8bc9d12fcc07e888c10cd0746d2a562c09d3a65a.tar.bz2 meta-impy-8bc9d12fcc07e888c10cd0746d2a562c09d3a65a.tar.xz |
Merge commit 'jacek/next' into gst-revamp
Diffstat (limited to 'linden/indra/llaudio/audioengine_openal.cpp')
-rw-r--r-- | linden/indra/llaudio/audioengine_openal.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/linden/indra/llaudio/audioengine_openal.cpp b/linden/indra/llaudio/audioengine_openal.cpp index 8f836a6..6d9a242 100644 --- a/linden/indra/llaudio/audioengine_openal.cpp +++ b/linden/indra/llaudio/audioengine_openal.cpp | |||
@@ -172,6 +172,17 @@ LLAudioChannelOpenAL::LLAudioChannelOpenAL() | |||
172 | mLastSamplePos(0) | 172 | mLastSamplePos(0) |
173 | { | 173 | { |
174 | alGenSources(1, &mALSource); | 174 | alGenSources(1, &mALSource); |
175 | |||
176 | if( mALSource == AL_NONE ) | ||
177 | { | ||
178 | ALenum error = alGetError(); | ||
179 | if( error == AL_NO_ERROR ) | ||
180 | { | ||
181 | LL_WARNS("OpenAL") << "LLAudioChannelOpenAL::LLAudioChannelOpenAL() Could not generate mALSource, but no error is indicated!" << LL_ENDL; | ||
182 | } | ||
183 | LL_WARNS("OpenAL") << "LLAudioChannelOpenAL::LLAudioChannelOpenAL() Could not generate mALSource: (" << error << ") " << alGetString( error ) << LL_ENDL; | ||
184 | } | ||
185 | |||
175 | } | 186 | } |
176 | 187 | ||
177 | LLAudioChannelOpenAL::~LLAudioChannelOpenAL() | 188 | LLAudioChannelOpenAL::~LLAudioChannelOpenAL() |