mirror of
https://github.com/love2d/love.git
synced 2026-08-19 20:19:42 +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:
@@ -33,6 +33,7 @@ LOVE 0.7.0
|
|||||||
* Fixed invalid FSAA values crashing LÖVE.
|
* Fixed invalid FSAA values crashing LÖVE.
|
||||||
* Fixed a bunch of compiler warnings.
|
* Fixed a bunch of compiler warnings.
|
||||||
* Fixed OS X not properly using UTIs for .love files.
|
* Fixed OS X not properly using UTIs for .love files.
|
||||||
|
* Fixed the modplug decoder not properly handeling files that fail to load.
|
||||||
|
|
||||||
* Changed fonts, they're now po2 safe.
|
* Changed fonts, they're now po2 safe.
|
||||||
* Changed the traceback in the error screen.
|
* Changed the traceback in the error screen.
|
||||||
|
|||||||
@@ -43,11 +43,11 @@ namespace lullaby
|
|||||||
|
|
||||||
// Load the module.
|
// Load the module.
|
||||||
plug = ModPlug_Load(data->getData(), data->getSize());
|
plug = ModPlug_Load(data->getData(), data->getSize());
|
||||||
|
|
||||||
ModPlug_SetMasterVolume(plug, 512);
|
|
||||||
|
|
||||||
if(plug == 0)
|
if(plug == 0)
|
||||||
throw love::Exception("Could not load file with ModPlug.");
|
throw love::Exception("Could not load file with ModPlug.");
|
||||||
|
|
||||||
|
ModPlug_SetMasterVolume(plug, 512);
|
||||||
}
|
}
|
||||||
|
|
||||||
ModPlugDecoder::~ModPlugDecoder()
|
ModPlugDecoder::~ModPlugDecoder()
|
||||||
|
|||||||
Reference in New Issue
Block a user