mirror of
https://github.com/love2d/love.git
synced 2026-08-16 08:11:02 +02:00
Fixed wave sound playback by using a different wave reader library (thanks Boolsheet!)
Resolves issue #25.
This commit is contained in:
@@ -27,6 +27,7 @@
|
||||
#include "ModPlugDecoder.h"
|
||||
#include "VorbisDecoder.h"
|
||||
#include "GmeDecoder.h"
|
||||
#include "WaveDecoder.h"
|
||||
//#include "FLACDecoder.h"
|
||||
|
||||
#ifndef LOVE_NOMPG123
|
||||
@@ -76,6 +77,8 @@ sound::Decoder *Sound::newDecoder(love::filesystem::FileData *data, int bufferSi
|
||||
else if (GmeDecoder::accepts(ext))
|
||||
decoder = new GmeDecoder(data, ext, bufferSize);
|
||||
#endif // LOVE_SUPPORT_GME
|
||||
else if (WaveDecoder::accepts(ext))
|
||||
decoder = new WaveDecoder(data, ext, bufferSize);
|
||||
/*else if (FLACDecoder::accepts(ext))
|
||||
decoder = new FLACDecoder(data, ext, bufferSize);*/
|
||||
|
||||
|
||||
Reference in New Issue
Block a user