Merge, I committed first

This commit is contained in:
bart@bart
2009-08-21 16:31:19 +02:00
8 changed files with 76 additions and 31 deletions
+5 -2
View File
@@ -93,8 +93,11 @@ namespace lullaby
bool ModPlugDecoder::rewind()
{
ModPlug_Seek(plug, 0);
return true;
// Let's reload.
ModPlug_Unload(plug);
plug = ModPlug_Load(data->getData(), data->getSize());
eof = false;
return (plug != 0);
}
bool ModPlugDecoder::isSeekable()
@@ -51,7 +51,6 @@ namespace lullaby
OggVorbis_File handle; // Handle to the file
vorbis_info * vorbisInfo; // Info
vorbis_comment * vorbisComment; // Comments
bool eof; // Whether we have reached the end of the file
public: