This commit is contained in:
Rian Drake 2026-10-15 14:09:11 +13:00
commit b578433e37
7 changed files with 784842 additions and 0 deletions

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,46 @@
// <auto-generated/>
// Generated by Brutal.Sdl.Generate; do not edit by hand.
#nullable enable
namespace Brutal.SdlApi.Mixer
{
public static unsafe partial class SdlMixer
{
public static class Constants
{
public const int DurationInfinite = -2;
public const int DurationUnknown = -1;
public const string PropAudioDecoderString = "SDL_mixer.audio.decoder";
public const string PropAudioLoadCloseioBoolean = "SDL_mixer.audio.load.closeio";
public const string PropAudioLoadIgnoreLoopsBoolean = "SDL_mixer.audio.load.ignore_loops";
public const string PropAudioLoadIostreamPointer = "SDL_mixer.audio.load.iostream";
public const string PropAudioLoadPredecodeBoolean = "SDL_mixer.audio.load.predecode";
public const string PropAudioLoadPreferredMixerPointer = "SDL_mixer.audio.load.preferred_mixer";
public const string PropAudioLoadSkipMetadataTagsBoolean = "SDL_mixer.audio.load.skip_metadata_tags";
public const string PropMetadataAlbumString = "SDL_mixer.metadata.album";
public const string PropMetadataArtistString = "SDL_mixer.metadata.artist";
public const string PropMetadataCopyrightString = "SDL_mixer.metadata.copyright";
public const string PropMetadataDurationFramesNumber = "SDL_mixer.metadata.duration_frames";
public const string PropMetadataDurationInfiniteBoolean = "SDL_mixer.metadata.duration_infinite";
public const string PropMetadataTitleString = "SDL_mixer.metadata.title";
public const string PropMetadataTotalTracksNumber = "SDL_mixer.metadata.total_tracks";
public const string PropMetadataTrackNumber = "SDL_mixer.metadata.track";
public const string PropMetadataYearNumber = "SDL_mixer.metadata.year";
public const string PropMixerDeviceNumber = "SDL_mixer.mixer.device";
public const string PropPlayAppendSilenceFramesNumber = "SDL_mixer.play.append_silence_frames";
public const string PropPlayAppendSilenceMillisecondsNumber = "SDL_mixer.play.append_silence_milliseconds";
public const string PropPlayFadeInFramesNumber = "SDL_mixer.play.fade_in_frames";
public const string PropPlayFadeInMillisecondsNumber = "SDL_mixer.play.fade_in_milliseconds";
public const string PropPlayFadeInStartGainFloat = "SDL_mixer.play.fade_in_start_gain";
public const string PropPlayHaltWhenExhaustedBoolean = "SDL_mixer.play.halt_when_exhausted";
public const string PropPlayLoopsNumber = "SDL_mixer.play.loops";
public const string PropPlayLoopStartFrameNumber = "SDL_mixer.play.loop_start_frame";
public const string PropPlayLoopStartMillisecondNumber = "SDL_mixer.play.loop_start_millisecond";
public const string PropPlayMaxFrameNumber = "SDL_mixer.play.max_frame";
public const string PropPlayMaxMillisecondsNumber = "SDL_mixer.play.max_milliseconds";
public const string PropPlayStartFrameNumber = "SDL_mixer.play.start_frame";
public const string PropPlayStartMillisecondNumber = "SDL_mixer.play.start_millisecond";
public const string PropPlayStartOrderNumber = "SDL_mixer.play.start_order";
}
}
}

View file

@ -0,0 +1,36 @@
// <auto-generated/>
// Generated by Brutal.Sdl.Generate; do not edit by hand.
#nullable enable
namespace Brutal.SdlApi.Mixer
{
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
public unsafe delegate void MixTrackStoppedCallback(void* userdata, MixTrack track);
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
public unsafe delegate void MixTrackMixCallback(
void* userdata,
MixTrack track,
SdlAudioSpec* spec,
float* pcm,
int samples
);
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
public unsafe delegate void MixGroupMixCallback(
void* userdata,
MixGroup group,
SdlAudioSpec* spec,
float* pcm,
int samples
);
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
public unsafe delegate void MixPostMixCallback(
void* userdata,
MixMixer mixer,
SdlAudioSpec* spec,
float* pcm,
int samples
);
}

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,98 @@
// <auto-generated/>
// Generated by Brutal.Sdl.Generate; do not edit by hand.
#nullable enable
using System;
using Brutal.Interop;
namespace Brutal.SdlApi.Mixer;
/// <summary>
/// A strongly-typed interop handle wrapping the opaque SDL <c>MIX_Audio</c> pointer.
/// </summary>
[InteropHandle]
public readonly unsafe partial struct MixAudio : IDisposable
{
/// <inheritdoc/>
public void Dispose()
{
// A default/zeroed handle owns nothing; forwarding it to the native destructor is at
// best a wasted call and at worst undefined behaviour. Guard so Dispose is a safe no-op
// on a null handle (and so a double-dispose after the value was cleared is harmless).
if (IsNull())
return;
SdlMixer.PInvoke.DestroyAudio(this);
}
}
/// <summary>
/// A strongly-typed interop handle wrapping the opaque SDL <c>MIX_AudioDecoder</c> pointer.
/// </summary>
[InteropHandle]
public readonly unsafe partial struct MixAudioDecoder : IDisposable
{
/// <inheritdoc/>
public void Dispose()
{
// A default/zeroed handle owns nothing; forwarding it to the native destructor is at
// best a wasted call and at worst undefined behaviour. Guard so Dispose is a safe no-op
// on a null handle (and so a double-dispose after the value was cleared is harmless).
if (IsNull())
return;
SdlMixer.PInvoke.DestroyAudioDecoder(this);
}
}
/// <summary>
/// A strongly-typed interop handle wrapping the opaque SDL <c>MIX_Group</c> pointer.
/// </summary>
[InteropHandle]
public readonly unsafe partial struct MixGroup : IDisposable
{
/// <inheritdoc/>
public void Dispose()
{
// A default/zeroed handle owns nothing; forwarding it to the native destructor is at
// best a wasted call and at worst undefined behaviour. Guard so Dispose is a safe no-op
// on a null handle (and so a double-dispose after the value was cleared is harmless).
if (IsNull())
return;
SdlMixer.PInvoke.DestroyGroup(this);
}
}
/// <summary>
/// A strongly-typed interop handle wrapping the opaque SDL <c>MIX_Mixer</c> pointer.
/// </summary>
[InteropHandle]
public readonly unsafe partial struct MixMixer : IDisposable
{
/// <inheritdoc/>
public void Dispose()
{
// A default/zeroed handle owns nothing; forwarding it to the native destructor is at
// best a wasted call and at worst undefined behaviour. Guard so Dispose is a safe no-op
// on a null handle (and so a double-dispose after the value was cleared is harmless).
if (IsNull())
return;
SdlMixer.PInvoke.DestroyMixer(this);
}
}
/// <summary>
/// A strongly-typed interop handle wrapping the opaque SDL <c>MIX_Track</c> pointer.
/// </summary>
[InteropHandle]
public readonly unsafe partial struct MixTrack : IDisposable
{
/// <inheritdoc/>
public void Dispose()
{
// A default/zeroed handle owns nothing; forwarding it to the native destructor is at
// best a wasted call and at worst undefined behaviour. Guard so Dispose is a safe no-op
// on a null handle (and so a double-dispose after the value was cleared is harmless).
if (IsNull())
return;
SdlMixer.PInvoke.DestroyTrack(this);
}
}

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,21 @@
// <auto-generated/>
// Generated by Brutal.Sdl.Generate; do not edit by hand.
#nullable enable
namespace Brutal.SdlApi.Mixer
{
[StructLayout(LayoutKind.Sequential)]
public partial struct MixStereoGains
{
public float left;
public float right;
}
[StructLayout(LayoutKind.Sequential)]
public partial struct MixPoint3D
{
public float x;
public float y;
public float z;
}
}