Search found 2 matches
- Thu Aug 26, 2021 12:54 pm
- Forum: Support and Development
- Topic: [11.3] Decoding sound data from the byte string
- Replies: 2
- Views: 5158
Re: [11.3] Decoding sound data from the byte string
You can put the string into a FileData via the love.filesystem.newFileData variant which accepts a string + (fake) filename combination. The filename can be anything as long as it has .ogg extension at the end. OMG, it worked! Thank you very much, Slime! The solution is much more simple than i expe...
- Thu Aug 26, 2021 12:29 pm
- Forum: Support and Development
- Topic: [11.3] Decoding sound data from the byte string
- Replies: 2
- Views: 5158
[11.3] Decoding sound data from the byte string
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): local data = love.data.newByteData(pngStr); local img = love.graphics.newImage...