mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-28 14:08:25 +01:00
first
This commit is contained in:
parent
bd62d51ec9
commit
b578433e37
7 changed files with 784842 additions and 0 deletions
2168
Brutal.Sdl.Mixer/Generated/Libraries/SdlMixer.Ergonomic.gen.cs
Normal file
2168
Brutal.Sdl.Mixer/Generated/Libraries/SdlMixer.Ergonomic.gen.cs
Normal file
File diff suppressed because it is too large
Load diff
46
Brutal.Sdl.Mixer/Generated/SdlMixer.Constants.gen.cs
Normal file
46
Brutal.Sdl.Mixer/Generated/SdlMixer.Constants.gen.cs
Normal 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";
|
||||
}
|
||||
}
|
||||
}
|
||||
36
Brutal.Sdl.Mixer/Generated/SdlMixer.Delegates.gen.cs
Normal file
36
Brutal.Sdl.Mixer/Generated/SdlMixer.Delegates.gen.cs
Normal 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
|
||||
);
|
||||
}
|
||||
1471
Brutal.Sdl.Mixer/Generated/SdlMixer.HandleMethods.gen.cs
Normal file
1471
Brutal.Sdl.Mixer/Generated/SdlMixer.HandleMethods.gen.cs
Normal file
File diff suppressed because it is too large
Load diff
98
Brutal.Sdl.Mixer/Generated/SdlMixer.Handles.gen.cs
Normal file
98
Brutal.Sdl.Mixer/Generated/SdlMixer.Handles.gen.cs
Normal 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);
|
||||
}
|
||||
}
|
||||
1074
Brutal.Sdl.Mixer/Generated/SdlMixer.PInvoke.gen.cs
Normal file
1074
Brutal.Sdl.Mixer/Generated/SdlMixer.PInvoke.gen.cs
Normal file
File diff suppressed because it is too large
Load diff
21
Brutal.Sdl.Mixer/Generated/SdlMixer.Structs.gen.cs
Normal file
21
Brutal.Sdl.Mixer/Generated/SdlMixer.Structs.gen.cs
Normal 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;
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue