mirror of
https://github.com/raylib-cs/raylib-cs
synced 2025-07-02 19:13:43 -04:00
Split audio types into separate files
This commit is contained in:
37
Raylib-cs/types/Wave.cs
Normal file
37
Raylib-cs/types/Wave.cs
Normal file
@ -0,0 +1,37 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
namespace Raylib_cs;
|
||||
|
||||
/// <summary>
|
||||
/// Wave type, defines audio wave data
|
||||
/// </summary>
|
||||
[StructLayout(LayoutKind.Sequential)]
|
||||
public unsafe partial struct Wave
|
||||
{
|
||||
/// <summary>
|
||||
/// Number of samples
|
||||
/// </summary>
|
||||
public uint SampleCount;
|
||||
|
||||
/// <summary>
|
||||
/// Frequency (samples per second)
|
||||
/// </summary>
|
||||
public uint SampleRate;
|
||||
|
||||
/// <summary>
|
||||
/// Bit depth (bits per sample): 8, 16, 32 (24 not supported)
|
||||
/// </summary>
|
||||
public uint SampleSize;
|
||||
|
||||
/// <summary>
|
||||
/// Number of channels (1-mono, 2-stereo)
|
||||
/// </summary>
|
||||
public uint Channels;
|
||||
|
||||
//TODO: SPAN<byte> ?
|
||||
/// <summary>
|
||||
/// Buffer data pointer
|
||||
/// </summary>
|
||||
public void* Data;
|
||||
}
|
Reference in New Issue
Block a user