brutal/brutal.fmod/Brutal.Fmod/FmodCoreApi/Generated/Structs/CodecDescription.gen.cs
2026-10-15 14:12:02 +13:00

61 lines
1.6 KiB
C#

// <auto-generated/>
// Generated by Brutal.Fmod.Generate; do not edit by hand.
#nullable enable
namespace Brutal.FmodApi
{
/// <summary>
/// <para>
/// Codec description.
/// </para>
/// <para>
/// This description structure allows the plug-in writer to define all functionality required for a user-defined
/// codec.
/// </para>
/// <para>
/// <see href="https://www.fmod.com/docs/2.03/api/plugin-api-codec.html#fmod_codec_description">FMOD_CODEC_DESCRIPTION</see>
/// </para>
/// </summary>
[StructLayout(LayoutKind.Explicit, Size = 96)]
public unsafe partial struct CodecDescription
{
[FieldOffset(0)]
public uint ApiVersion;
[FieldOffset(8)]
public byte* Name;
[FieldOffset(16)]
public uint Version;
[FieldOffset(20)]
public int DefaultAsstream;
[FieldOffset(24)]
public TimeUnit TimeUnits;
[FieldOffset(32)]
public CodecOpenCallbackPtr Open;
[FieldOffset(40)]
public CodecCloseCallbackPtr Close;
[FieldOffset(48)]
public CodecReadCallbackPtr Read;
[FieldOffset(56)]
public CodecGetLengthCallbackPtr GetLength;
[FieldOffset(64)]
public CodecSetPositionCallbackPtr SetPosition;
[FieldOffset(72)]
public CodecGetPositionCallbackPtr GetPosition;
[FieldOffset(80)]
public CodecSoundCreateCallbackPtr SoundCreate;
[FieldOffset(88)]
public CodecGetWaveFormatCallbackPtr GetWaveFormat;
}
}