mirror of
https://github.com/raylib-cs/raylib-cs
synced 2025-09-09 03:01:41 -04:00
Big unsafe update 1
This commit is contained in:
@@ -7,7 +7,7 @@ namespace Raylib_cs
|
||||
/// Wave type, defines audio wave data
|
||||
/// </summary>
|
||||
[StructLayout(LayoutKind.Sequential)]
|
||||
public struct Wave
|
||||
public unsafe struct Wave
|
||||
{
|
||||
/// <summary>
|
||||
/// Number of samples
|
||||
@@ -30,9 +30,9 @@ namespace Raylib_cs
|
||||
public uint channels;
|
||||
|
||||
/// <summary>
|
||||
/// Buffer data pointer (void *)
|
||||
/// Buffer data pointer
|
||||
/// </summary>
|
||||
public IntPtr data;
|
||||
public void* data;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -45,7 +45,7 @@ namespace Raylib_cs
|
||||
/// <summary>
|
||||
/// Pointer to internal data(rAudioBuffer *) used by the audio system
|
||||
/// </summary>
|
||||
public IntPtr audioBuffer;
|
||||
public IntPtr buffer;
|
||||
|
||||
/// <summary>
|
||||
/// Frequency (samples per second)
|
||||
@@ -85,7 +85,7 @@ namespace Raylib_cs
|
||||
/// NOTE: Anything longer than ~10 seconds should be streamed
|
||||
/// </summary>
|
||||
[StructLayout(LayoutKind.Sequential)]
|
||||
public struct Music
|
||||
public unsafe struct Music
|
||||
{
|
||||
/// <summary>
|
||||
/// Audio stream
|
||||
@@ -108,8 +108,8 @@ namespace Raylib_cs
|
||||
public int ctxType;
|
||||
|
||||
/// <summary>
|
||||
/// Audio context data, depends on type (void *)
|
||||
/// Audio context data, depends on type
|
||||
/// </summary>
|
||||
public IntPtr ctxData;
|
||||
public void* ctxData;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user