Kaynağa Gözat

Fixed a stupid mistake

Ivan Safrin 13 yıl önce
ebeveyn
işleme
227aab44a1
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  1. 1 1
      Core/Contents/Source/PolySound.cpp

+ 1 - 1
Core/Contents/Source/PolySound.cpp

@@ -345,7 +345,7 @@ ALuint Sound::loadOGG(const String& fileName) {
 	} while (bytes > 0);
 	} while (bytes > 0);
 	ov_clear(&oggFile);
 	ov_clear(&oggFile);
 	
 	
-	sampleLength = buffer.size() / sizeof(unsigned int);
+	sampleLength = buffer.size() / sizeof(unsigned short);
 	
 	
 	alBufferData(bufferID, format, &buffer[0], static_cast<ALsizei>(buffer.size()), freq);
 	alBufferData(bufferID, format, &buffer[0], static_cast<ALsizei>(buffer.size()), freq);