diff engine/core/audio/soundclippool.h @ 146:54b3984e1afc

The getIndex function was a hack that shadowed another bug that caused the pools to misbehave. AddResourceFromFile works now exactly as getIndex, it's just faster. Fixed GUIImage to not hold a reference, it uses the index directly anyway. Plus heaps of minor adjustments for more informative debug output and statistics.
author phoku@33b003aa-7bff-0310-803a-e67f0ece8222
date Thu, 09 Oct 2008 12:36:21 +0000
parents 90005975cdbb
children
line wrap: on
line diff
--- a/engine/core/audio/soundclippool.h	Thu Oct 09 08:23:13 2008 +0000
+++ b/engine/core/audio/soundclippool.h	Thu Oct 09 12:36:21 2008 +0000
@@ -44,12 +44,12 @@
 	public:
 		/** Default constructor.
 		 */
-		SoundClipPool(): Pool() {
+		SoundClipPool(const std::string& name = "SoundPool"): Pool(name) {
 		}
 	
 		/** Destructor.
 		 */
-	   virtual ~SoundClipPool() {}
+		virtual ~SoundClipPool() {}
 	
 		SoundClip& getSoundClip(unsigned int index)  {
 			return dynamic_cast<SoundClip&>(get(index));