[11.3] Decoding sound data from the byte string
Posted: Thu Aug 26, 2021 12:29 pm
I was searching on the wiki on how to initialize the SoundData from the byte string that represents the OGG file but could not find any information about it. I am looking for something like this (but for OGG byte string):
Is there a posible way to load SoundData like that?
Is there any way to load sound data from string (easy or not)?
Code: Select all
local data = love.data.newByteData(pngStr);
local img = love.graphics.newImage(data);
Is there a posible way to load SoundData like that?
Code: Select all
local data = love.data.newByteData(oggStr);
local sndData = love.sound.newSoundData(data); -- Crash (expected filename, File or FileData expected)