Watch
2
0
Fork
You've already forked raylib-cs
0

Add additional LoadXFromMemory utility functions

This commit is contained in:
Rgebee 2023-05-27 15:48:05 +01:00
commit 7cbb1bef64
2 changed files with 91 additions and 2 deletions

View file

@ -2531,8 +2531,7 @@ namespace Raylib_cs
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
public static extern Music LoadMusicStream(sbyte* fileName);
//TODO: Span/Helper method
/// <summary>Load music stream from data</summary>
/// <summary>Load music stream from memory buffer, fileType refers to extension: i.e. ".wav"</summary>
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
public static extern Music LoadMusicStreamFromMemory(sbyte* fileType, byte* data, int dataSize);