mirror of
https://github.com/love2d/love.git
synced 2026-08-20 04:30:09 +02:00
Looping now works for OGG and tracker files (only tested with XM).
This commit is contained in:
@@ -93,8 +93,11 @@ namespace lullaby
|
|||||||
|
|
||||||
bool ModPlugDecoder::rewind()
|
bool ModPlugDecoder::rewind()
|
||||||
{
|
{
|
||||||
ModPlug_Seek(plug, 0);
|
// Let's reload.
|
||||||
return true;
|
ModPlug_Unload(plug);
|
||||||
|
plug = ModPlug_Load(data->getData(), data->getSize());
|
||||||
|
eof = false;
|
||||||
|
return (plug != 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool ModPlugDecoder::isSeekable()
|
bool ModPlugDecoder::isSeekable()
|
||||||
|
|||||||
@@ -51,7 +51,6 @@ namespace lullaby
|
|||||||
OggVorbis_File handle; // Handle to the file
|
OggVorbis_File handle; // Handle to the file
|
||||||
vorbis_info * vorbisInfo; // Info
|
vorbis_info * vorbisInfo; // Info
|
||||||
vorbis_comment * vorbisComment; // Comments
|
vorbis_comment * vorbisComment; // Comments
|
||||||
bool eof; // Whether we have reached the end of the file
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user