@@ -176,14 +176,14 @@ void ofOpenALSoundPlayer::initialize(){
176176 alContext = alcCreateContext ( alDevice, nullptr );
177177 if ( !alContext ){
178178 ALCenum err = alcGetError ( alDevice );
179- ofLogError (" ofOpenALSoundPlayer" ) << " initialize(): couldn't not create OpenAL context : " << getALCErrorString ( err );
179+ ofLogError (" ofOpenALSoundPlayer" ) << " initialize(): couldn't not create OpenAL context: " << getALCErrorString ( err );
180180 close ();
181181 return ;
182182 }
183183
184184 if ( alcMakeContextCurrent ( alContext )==ALC_FALSE ){
185185 ALCenum err = alcGetError ( alDevice );
186- ofLogError (" ofOpenALSoundPlayer" ) << " initialize(): couldn't not make current the create OpenAL context : " << getALCErrorString ( err );
186+ ofLogError (" ofOpenALSoundPlayer" ) << " initialize(): couldn't not make current the create OpenAL context: " << getALCErrorString ( err );
187187 close ();
188188 return ;
189189 };
@@ -222,7 +222,7 @@ void ofOpenALSoundPlayer::close(){
222222 alContext = nullptr ;
223223 }
224224 if ( alcCloseDevice ( alDevice )==ALC_FALSE ){
225- ofLogNotice (" ofOpenALSoundPlayer" ) << " initialize(): error closing OpenAL device. " ;
225+ ofLogNotice (" ofOpenALSoundPlayer" ) << " initialize(): error closing OpenAL device" ;
226226 }
227227 alDevice = nullptr ;
228228 }
@@ -503,7 +503,7 @@ bool ofOpenALSoundPlayer::load(const std::filesystem::path& _fileName, bool is_s
503503 bLoadedOk = stream (fileName, buffer);
504504 }
505505 if ( !bLoadedOk ) {
506- ofLogError (" ofOpenALSoundPlayer::load : ERROR loading file from " ) << fileName;
506+ ofLogError (" ofOpenALSoundPlayer" ) << " loadSound(): couldn't read \" " << fileName << " \" " ;
507507 return false ;
508508 }
509509
@@ -531,7 +531,7 @@ bool ofOpenALSoundPlayer::load(const std::filesystem::path& _fileName, bool is_s
531531 alBufferData (buffers[i],format,&buffer[0 ],buffer.size ()*2 ,samplerate);
532532 err = alGetError ();
533533 if (err != AL_NO_ERROR){
534- ofLogError (" ofOpenALSoundPlayer: " ) << " loadSound(): couldn't create buffer for \" " << fileName << " \" : "
534+ ofLogError (" ofOpenALSoundPlayer" ) << " loadSound(): couldn't create buffer for \" " << fileName << " \" : "
535535 << (int ) err << " " << getALErrorString (err);
536536 return false ;
537537 }
0 commit comments