mirror of
https://github.com/love2d/love.git
synced 2026-08-16 08:11:02 +02:00
Moved volume change in modplug decoder to after check if file has been loaded, thanks Michael R (fixes #60)
This commit is contained in:
@@ -43,11 +43,11 @@ namespace lullaby
|
||||
|
||||
// Load the module.
|
||||
plug = ModPlug_Load(data->getData(), data->getSize());
|
||||
|
||||
ModPlug_SetMasterVolume(plug, 512);
|
||||
|
||||
|
||||
if(plug == 0)
|
||||
throw love::Exception("Could not load file with ModPlug.");
|
||||
|
||||
ModPlug_SetMasterVolume(plug, 512);
|
||||
}
|
||||
|
||||
ModPlugDecoder::~ModPlugDecoder()
|
||||
|
||||
Reference in New Issue
Block a user