Sound.FromMemory
static Sound FromMemory(Byte[]& data, string id)
Loads a sound from a file’s data in memory! Same format support and async decode behavior as FromFile. The data is copied, so the array is yours again as soon as this returns.
| Byte[]& data | The complete contents of an audio file. |
| string id | A unique identifier for this sound - loading the same id again returns the already loaded sound. |
| RETURNS: Sound | A sound object, or null if something went wrong. |
Found an issue with these docs, or have some additional questions? Create an Issue on Github!