mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-29 06:28:25 +01:00
SOURCE DUMP v1
This commit is contained in:
parent
bd62d51ec9
commit
fb20299e9d
1 changed files with 768360 additions and 0 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue