]> git.mxchange.org Git - simgear.git/blobdiff - simgear/sound/soundmgr_openal.cxx
Use shared pointers for any reference to SGSoundSample, fix the constructor of SGSoun...
[simgear.git] / simgear / sound / soundmgr_openal.cxx
index 0e52d5c578a9f472e5dbcb2d306f4ec7eef873e5..37b138c54710df284ad27bd2ba1175c97bd56711 100644 (file)
@@ -377,6 +377,8 @@ unsigned int SGSoundMgr::request_source()
        _free_sources.pop_back();
        _sources_in_use.push_back(source);
     }
+    else
+       SG_LOG( SG_GENERAL, SG_INFO, "No more free sources available\n");
 
     return source;
 }
@@ -453,8 +455,9 @@ unsigned int SGSoundMgr::request_buffer(SGSoundSample *sample)
             }
         }
     }
-    else
+    else {
         buffer = sample->get_buffer();
+}
 
     return buffer;
 }