mirror of
https://github.com/love2d/love.git
synced 2026-08-18 03:34:23 +02:00
made decode() always return new SoundData
--HG-- branch : minor-manual-decoders
This commit is contained in:
@@ -39,6 +39,10 @@ SoundData *Sound::newSoundData(int samples, int sampleRate, int bitDepth, int ch
|
||||
return new SoundData(samples, sampleRate, bitDepth, channels);
|
||||
}
|
||||
|
||||
SoundData *Sound::newSoundData(void *data, int samples, int sampleRate, int bitDepth, int channels)
|
||||
{
|
||||
return new SoundData(data, samples, sampleRate, bitDepth, channels);
|
||||
}
|
||||
|
||||
} // sound
|
||||
} // love
|
||||
|
||||
Reference in New Issue
Block a user