mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-26 13:08:24 +01:00
1074 lines
43 KiB
C#
1074 lines
43 KiB
C#
// <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 partial class PInvoke
|
|
{
|
|
[LibraryImport(Dll, EntryPoint = "MIX_Version")]
|
|
private static partial int _Version();
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static int Version()
|
|
{
|
|
SdlMixer.TraceLog.Trace();
|
|
return _Version();
|
|
}
|
|
|
|
[LibraryImport(Dll, EntryPoint = "MIX_Init")]
|
|
private static partial byte _Init();
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static byte Init()
|
|
{
|
|
SdlMixer.TraceLog.Trace();
|
|
return _Init();
|
|
}
|
|
|
|
[LibraryImport(Dll, EntryPoint = "MIX_Quit")]
|
|
private static partial void _Quit();
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static void Quit()
|
|
{
|
|
SdlMixer.TraceLog.Trace();
|
|
_Quit();
|
|
}
|
|
|
|
[LibraryImport(Dll, EntryPoint = "MIX_GetNumAudioDecoders")]
|
|
private static partial int _GetNumAudioDecoders();
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static int GetNumAudioDecoders()
|
|
{
|
|
SdlMixer.TraceLog.Trace();
|
|
return _GetNumAudioDecoders();
|
|
}
|
|
|
|
[LibraryImport(
|
|
Dll,
|
|
EntryPoint = "MIX_GetAudioDecoder",
|
|
StringMarshalling = StringMarshalling.Custom,
|
|
StringMarshallingCustomType = typeof(CustomStringMarshaller)
|
|
)]
|
|
private static partial string? _GetAudioDecoder(int index);
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static string? GetAudioDecoder(int index)
|
|
{
|
|
SdlMixer.TraceLog.Trace();
|
|
return _GetAudioDecoder(index);
|
|
}
|
|
|
|
[LibraryImport(Dll, EntryPoint = "MIX_CreateMixerDevice")]
|
|
private static partial MixMixer _CreateMixerDevice(uint devid, SdlAudioSpec* spec);
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static MixMixer CreateMixerDevice(uint devid, SdlAudioSpec* spec)
|
|
{
|
|
SdlMixer.TraceLog.Trace();
|
|
return _CreateMixerDevice(devid, spec);
|
|
}
|
|
|
|
[LibraryImport(Dll, EntryPoint = "MIX_CreateMixer")]
|
|
private static partial MixMixer _CreateMixer(SdlAudioSpec* spec);
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static MixMixer CreateMixer(SdlAudioSpec* spec)
|
|
{
|
|
SdlMixer.TraceLog.Trace();
|
|
return _CreateMixer(spec);
|
|
}
|
|
|
|
[LibraryImport(Dll, EntryPoint = "MIX_DestroyMixer")]
|
|
private static partial void _DestroyMixer(MixMixer mixer);
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static void DestroyMixer(MixMixer mixer)
|
|
{
|
|
SdlMixer.TraceLog.Trace();
|
|
_DestroyMixer(mixer);
|
|
}
|
|
|
|
[LibraryImport(Dll, EntryPoint = "MIX_GetMixerProperties")]
|
|
private static partial uint _GetMixerProperties(MixMixer mixer);
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static uint GetMixerProperties(MixMixer mixer)
|
|
{
|
|
SdlMixer.TraceLog.Trace();
|
|
return _GetMixerProperties(mixer);
|
|
}
|
|
|
|
[LibraryImport(Dll, EntryPoint = "MIX_GetMixerFormat")]
|
|
private static partial byte _GetMixerFormat(MixMixer mixer, SdlAudioSpec* spec);
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static byte GetMixerFormat(MixMixer mixer, SdlAudioSpec* spec)
|
|
{
|
|
SdlMixer.TraceLog.Trace();
|
|
return _GetMixerFormat(mixer, spec);
|
|
}
|
|
|
|
[LibraryImport(Dll, EntryPoint = "MIX_LockMixer")]
|
|
private static partial void _LockMixer(MixMixer mixer);
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static void LockMixer(MixMixer mixer)
|
|
{
|
|
SdlMixer.TraceLog.Trace();
|
|
_LockMixer(mixer);
|
|
}
|
|
|
|
[LibraryImport(Dll, EntryPoint = "MIX_UnlockMixer")]
|
|
private static partial void _UnlockMixer(MixMixer mixer);
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static void UnlockMixer(MixMixer mixer)
|
|
{
|
|
SdlMixer.TraceLog.Trace();
|
|
_UnlockMixer(mixer);
|
|
}
|
|
|
|
[LibraryImport(Dll, EntryPoint = "MIX_LoadAudio_IO")]
|
|
private static partial MixAudio _LoadAudioIO(MixMixer mixer, nint io, byte predecode, byte closeio);
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static MixAudio LoadAudioIO(MixMixer mixer, nint io, byte predecode, byte closeio)
|
|
{
|
|
SdlMixer.TraceLog.Trace();
|
|
return _LoadAudioIO(mixer, io, predecode, closeio);
|
|
}
|
|
|
|
[LibraryImport(
|
|
Dll,
|
|
EntryPoint = "MIX_LoadAudio",
|
|
StringMarshalling = StringMarshalling.Custom,
|
|
StringMarshallingCustomType = typeof(CustomStringMarshaller)
|
|
)]
|
|
private static partial MixAudio _LoadAudio(MixMixer mixer, string path, byte predecode);
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static MixAudio LoadAudio(MixMixer mixer, string path, byte predecode)
|
|
{
|
|
SdlMixer.TraceLog.Trace();
|
|
return _LoadAudio(mixer, path, predecode);
|
|
}
|
|
|
|
[LibraryImport(Dll, EntryPoint = "MIX_LoadAudioNoCopy")]
|
|
private static partial MixAudio _LoadAudioNoCopy(
|
|
MixMixer mixer,
|
|
void* data,
|
|
nuint datalen,
|
|
byte free_when_done
|
|
);
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static MixAudio LoadAudioNoCopy(MixMixer mixer, void* data, nuint datalen, byte free_when_done)
|
|
{
|
|
SdlMixer.TraceLog.Trace();
|
|
return _LoadAudioNoCopy(mixer, data, datalen, free_when_done);
|
|
}
|
|
|
|
[LibraryImport(Dll, EntryPoint = "MIX_LoadAudioWithProperties")]
|
|
private static partial MixAudio _LoadAudioWithProperties(uint props);
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static MixAudio LoadAudioWithProperties(uint props)
|
|
{
|
|
SdlMixer.TraceLog.Trace();
|
|
return _LoadAudioWithProperties(props);
|
|
}
|
|
|
|
[LibraryImport(Dll, EntryPoint = "MIX_LoadRawAudio_IO")]
|
|
private static partial MixAudio _LoadRawAudioIO(MixMixer mixer, nint io, SdlAudioSpec* spec, byte closeio);
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static MixAudio LoadRawAudioIO(MixMixer mixer, nint io, SdlAudioSpec* spec, byte closeio)
|
|
{
|
|
SdlMixer.TraceLog.Trace();
|
|
return _LoadRawAudioIO(mixer, io, spec, closeio);
|
|
}
|
|
|
|
[LibraryImport(Dll, EntryPoint = "MIX_LoadRawAudio")]
|
|
private static partial MixAudio _LoadRawAudio(
|
|
MixMixer mixer,
|
|
void* data,
|
|
nuint datalen,
|
|
SdlAudioSpec* spec
|
|
);
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static MixAudio LoadRawAudio(MixMixer mixer, void* data, nuint datalen, SdlAudioSpec* spec)
|
|
{
|
|
SdlMixer.TraceLog.Trace();
|
|
return _LoadRawAudio(mixer, data, datalen, spec);
|
|
}
|
|
|
|
[LibraryImport(Dll, EntryPoint = "MIX_LoadRawAudioNoCopy")]
|
|
private static partial MixAudio _LoadRawAudioNoCopy(
|
|
MixMixer mixer,
|
|
void* data,
|
|
nuint datalen,
|
|
SdlAudioSpec* spec,
|
|
byte free_when_done
|
|
);
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static MixAudio LoadRawAudioNoCopy(
|
|
MixMixer mixer,
|
|
void* data,
|
|
nuint datalen,
|
|
SdlAudioSpec* spec,
|
|
byte free_when_done
|
|
)
|
|
{
|
|
SdlMixer.TraceLog.Trace();
|
|
return _LoadRawAudioNoCopy(mixer, data, datalen, spec, free_when_done);
|
|
}
|
|
|
|
[LibraryImport(Dll, EntryPoint = "MIX_CreateSineWaveAudio")]
|
|
private static partial MixAudio _CreateSineWaveAudio(MixMixer mixer, int hz, float amplitude, long ms);
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static MixAudio CreateSineWaveAudio(MixMixer mixer, int hz, float amplitude, long ms)
|
|
{
|
|
SdlMixer.TraceLog.Trace();
|
|
return _CreateSineWaveAudio(mixer, hz, amplitude, ms);
|
|
}
|
|
|
|
[LibraryImport(Dll, EntryPoint = "MIX_GetAudioProperties")]
|
|
private static partial uint _GetAudioProperties(MixAudio audio);
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static uint GetAudioProperties(MixAudio audio)
|
|
{
|
|
SdlMixer.TraceLog.Trace();
|
|
return _GetAudioProperties(audio);
|
|
}
|
|
|
|
[LibraryImport(Dll, EntryPoint = "MIX_GetAudioDuration")]
|
|
private static partial long _GetAudioDuration(MixAudio audio);
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static long GetAudioDuration(MixAudio audio)
|
|
{
|
|
SdlMixer.TraceLog.Trace();
|
|
return _GetAudioDuration(audio);
|
|
}
|
|
|
|
[LibraryImport(Dll, EntryPoint = "MIX_GetAudioFormat")]
|
|
private static partial byte _GetAudioFormat(MixAudio audio, SdlAudioSpec* spec);
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static byte GetAudioFormat(MixAudio audio, SdlAudioSpec* spec)
|
|
{
|
|
SdlMixer.TraceLog.Trace();
|
|
return _GetAudioFormat(audio, spec);
|
|
}
|
|
|
|
[LibraryImport(Dll, EntryPoint = "MIX_DestroyAudio")]
|
|
private static partial void _DestroyAudio(MixAudio audio);
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static void DestroyAudio(MixAudio audio)
|
|
{
|
|
SdlMixer.TraceLog.Trace();
|
|
_DestroyAudio(audio);
|
|
}
|
|
|
|
[LibraryImport(Dll, EntryPoint = "MIX_CreateTrack")]
|
|
private static partial MixTrack _CreateTrack(MixMixer mixer);
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static MixTrack CreateTrack(MixMixer mixer)
|
|
{
|
|
SdlMixer.TraceLog.Trace();
|
|
return _CreateTrack(mixer);
|
|
}
|
|
|
|
[LibraryImport(Dll, EntryPoint = "MIX_DestroyTrack")]
|
|
private static partial void _DestroyTrack(MixTrack track);
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static void DestroyTrack(MixTrack track)
|
|
{
|
|
SdlMixer.TraceLog.Trace();
|
|
_DestroyTrack(track);
|
|
}
|
|
|
|
[LibraryImport(Dll, EntryPoint = "MIX_GetTrackProperties")]
|
|
private static partial uint _GetTrackProperties(MixTrack track);
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static uint GetTrackProperties(MixTrack track)
|
|
{
|
|
SdlMixer.TraceLog.Trace();
|
|
return _GetTrackProperties(track);
|
|
}
|
|
|
|
[LibraryImport(Dll, EntryPoint = "MIX_GetTrackMixer")]
|
|
private static partial MixMixer _GetTrackMixer(MixTrack track);
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static MixMixer GetTrackMixer(MixTrack track)
|
|
{
|
|
SdlMixer.TraceLog.Trace();
|
|
return _GetTrackMixer(track);
|
|
}
|
|
|
|
[LibraryImport(Dll, EntryPoint = "MIX_SetTrackAudio")]
|
|
private static partial byte _SetTrackAudio(MixTrack track, MixAudio audio);
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static byte SetTrackAudio(MixTrack track, MixAudio audio)
|
|
{
|
|
SdlMixer.TraceLog.Trace();
|
|
return _SetTrackAudio(track, audio);
|
|
}
|
|
|
|
[LibraryImport(Dll, EntryPoint = "MIX_SetTrackAudioStream")]
|
|
private static partial byte _SetTrackAudioStream(MixTrack track, SdlAudioStream stream);
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static byte SetTrackAudioStream(MixTrack track, SdlAudioStream stream)
|
|
{
|
|
SdlMixer.TraceLog.Trace();
|
|
return _SetTrackAudioStream(track, stream);
|
|
}
|
|
|
|
[LibraryImport(Dll, EntryPoint = "MIX_SetTrackIOStream")]
|
|
private static partial byte _SetTrackIOStream(MixTrack track, nint io, byte closeio);
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static byte SetTrackIOStream(MixTrack track, nint io, byte closeio)
|
|
{
|
|
SdlMixer.TraceLog.Trace();
|
|
return _SetTrackIOStream(track, io, closeio);
|
|
}
|
|
|
|
[LibraryImport(Dll, EntryPoint = "MIX_SetTrackRawIOStream")]
|
|
private static partial byte _SetTrackRawIOStream(MixTrack track, nint io, SdlAudioSpec* spec, byte closeio);
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static byte SetTrackRawIOStream(MixTrack track, nint io, SdlAudioSpec* spec, byte closeio)
|
|
{
|
|
SdlMixer.TraceLog.Trace();
|
|
return _SetTrackRawIOStream(track, io, spec, closeio);
|
|
}
|
|
|
|
[LibraryImport(
|
|
Dll,
|
|
EntryPoint = "MIX_TagTrack",
|
|
StringMarshalling = StringMarshalling.Custom,
|
|
StringMarshallingCustomType = typeof(CustomStringMarshaller)
|
|
)]
|
|
private static partial byte _TagTrack(MixTrack track, string tag);
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static byte TagTrack(MixTrack track, string tag)
|
|
{
|
|
SdlMixer.TraceLog.Trace();
|
|
return _TagTrack(track, tag);
|
|
}
|
|
|
|
[LibraryImport(
|
|
Dll,
|
|
EntryPoint = "MIX_UntagTrack",
|
|
StringMarshalling = StringMarshalling.Custom,
|
|
StringMarshallingCustomType = typeof(CustomStringMarshaller)
|
|
)]
|
|
private static partial void _UntagTrack(MixTrack track, string tag);
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static void UntagTrack(MixTrack track, string tag)
|
|
{
|
|
SdlMixer.TraceLog.Trace();
|
|
_UntagTrack(track, tag);
|
|
}
|
|
|
|
[LibraryImport(Dll, EntryPoint = "MIX_GetTrackTags")]
|
|
private static partial byte** _GetTrackTags(MixTrack track, int* count);
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static byte** GetTrackTags(MixTrack track, int* count)
|
|
{
|
|
SdlMixer.TraceLog.Trace();
|
|
return _GetTrackTags(track, count);
|
|
}
|
|
|
|
[LibraryImport(
|
|
Dll,
|
|
EntryPoint = "MIX_GetTaggedTracks",
|
|
StringMarshalling = StringMarshalling.Custom,
|
|
StringMarshallingCustomType = typeof(CustomStringMarshaller)
|
|
)]
|
|
private static partial MixTrack* _GetTaggedTracks(MixMixer mixer, string tag, int* count);
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static MixTrack* GetTaggedTracks(MixMixer mixer, string tag, int* count)
|
|
{
|
|
SdlMixer.TraceLog.Trace();
|
|
return _GetTaggedTracks(mixer, tag, count);
|
|
}
|
|
|
|
[LibraryImport(Dll, EntryPoint = "MIX_SetTrackPlaybackPosition")]
|
|
private static partial byte _SetTrackPlaybackPosition(MixTrack track, long frames);
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static byte SetTrackPlaybackPosition(MixTrack track, long frames)
|
|
{
|
|
SdlMixer.TraceLog.Trace();
|
|
return _SetTrackPlaybackPosition(track, frames);
|
|
}
|
|
|
|
[LibraryImport(Dll, EntryPoint = "MIX_GetTrackPlaybackPosition")]
|
|
private static partial long _GetTrackPlaybackPosition(MixTrack track);
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static long GetTrackPlaybackPosition(MixTrack track)
|
|
{
|
|
SdlMixer.TraceLog.Trace();
|
|
return _GetTrackPlaybackPosition(track);
|
|
}
|
|
|
|
[LibraryImport(Dll, EntryPoint = "MIX_GetTrackFadeFrames")]
|
|
private static partial long _GetTrackFadeFrames(MixTrack track);
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static long GetTrackFadeFrames(MixTrack track)
|
|
{
|
|
SdlMixer.TraceLog.Trace();
|
|
return _GetTrackFadeFrames(track);
|
|
}
|
|
|
|
[LibraryImport(Dll, EntryPoint = "MIX_GetTrackLoops")]
|
|
private static partial int _GetTrackLoops(MixTrack track);
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static int GetTrackLoops(MixTrack track)
|
|
{
|
|
SdlMixer.TraceLog.Trace();
|
|
return _GetTrackLoops(track);
|
|
}
|
|
|
|
[LibraryImport(Dll, EntryPoint = "MIX_SetTrackLoops")]
|
|
private static partial byte _SetTrackLoops(MixTrack track, int num_loops);
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static byte SetTrackLoops(MixTrack track, int num_loops)
|
|
{
|
|
SdlMixer.TraceLog.Trace();
|
|
return _SetTrackLoops(track, num_loops);
|
|
}
|
|
|
|
[LibraryImport(Dll, EntryPoint = "MIX_GetTrackAudio")]
|
|
private static partial MixAudio _GetTrackAudio(MixTrack track);
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static MixAudio GetTrackAudio(MixTrack track)
|
|
{
|
|
SdlMixer.TraceLog.Trace();
|
|
return _GetTrackAudio(track);
|
|
}
|
|
|
|
[LibraryImport(Dll, EntryPoint = "MIX_GetTrackAudioStream")]
|
|
private static partial SdlAudioStream _GetTrackAudioStream(MixTrack track);
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static SdlAudioStream GetTrackAudioStream(MixTrack track)
|
|
{
|
|
SdlMixer.TraceLog.Trace();
|
|
return _GetTrackAudioStream(track);
|
|
}
|
|
|
|
[LibraryImport(Dll, EntryPoint = "MIX_GetTrackRemaining")]
|
|
private static partial long _GetTrackRemaining(MixTrack track);
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static long GetTrackRemaining(MixTrack track)
|
|
{
|
|
SdlMixer.TraceLog.Trace();
|
|
return _GetTrackRemaining(track);
|
|
}
|
|
|
|
[LibraryImport(Dll, EntryPoint = "MIX_TrackMSToFrames")]
|
|
private static partial long _TrackMSToFrames(MixTrack track, long ms);
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static long TrackMSToFrames(MixTrack track, long ms)
|
|
{
|
|
SdlMixer.TraceLog.Trace();
|
|
return _TrackMSToFrames(track, ms);
|
|
}
|
|
|
|
[LibraryImport(Dll, EntryPoint = "MIX_TrackFramesToMS")]
|
|
private static partial long _TrackFramesToMS(MixTrack track, long frames);
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static long TrackFramesToMS(MixTrack track, long frames)
|
|
{
|
|
SdlMixer.TraceLog.Trace();
|
|
return _TrackFramesToMS(track, frames);
|
|
}
|
|
|
|
[LibraryImport(Dll, EntryPoint = "MIX_AudioMSToFrames")]
|
|
private static partial long _AudioMSToFrames(MixAudio audio, long ms);
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static long AudioMSToFrames(MixAudio audio, long ms)
|
|
{
|
|
SdlMixer.TraceLog.Trace();
|
|
return _AudioMSToFrames(audio, ms);
|
|
}
|
|
|
|
[LibraryImport(Dll, EntryPoint = "MIX_AudioFramesToMS")]
|
|
private static partial long _AudioFramesToMS(MixAudio audio, long frames);
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static long AudioFramesToMS(MixAudio audio, long frames)
|
|
{
|
|
SdlMixer.TraceLog.Trace();
|
|
return _AudioFramesToMS(audio, frames);
|
|
}
|
|
|
|
[LibraryImport(Dll, EntryPoint = "MIX_MSToFrames")]
|
|
private static partial long _MSToFrames(int sample_rate, long ms);
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static long MSToFrames(int sample_rate, long ms)
|
|
{
|
|
SdlMixer.TraceLog.Trace();
|
|
return _MSToFrames(sample_rate, ms);
|
|
}
|
|
|
|
[LibraryImport(Dll, EntryPoint = "MIX_FramesToMS")]
|
|
private static partial long _FramesToMS(int sample_rate, long frames);
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static long FramesToMS(int sample_rate, long frames)
|
|
{
|
|
SdlMixer.TraceLog.Trace();
|
|
return _FramesToMS(sample_rate, frames);
|
|
}
|
|
|
|
[LibraryImport(Dll, EntryPoint = "MIX_PlayTrack")]
|
|
private static partial byte _PlayTrack(MixTrack track, uint options);
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static byte PlayTrack(MixTrack track, uint options)
|
|
{
|
|
SdlMixer.TraceLog.Trace();
|
|
return _PlayTrack(track, options);
|
|
}
|
|
|
|
[LibraryImport(
|
|
Dll,
|
|
EntryPoint = "MIX_PlayTag",
|
|
StringMarshalling = StringMarshalling.Custom,
|
|
StringMarshallingCustomType = typeof(CustomStringMarshaller)
|
|
)]
|
|
private static partial byte _PlayTag(MixMixer mixer, string tag, uint options);
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static byte PlayTag(MixMixer mixer, string tag, uint options)
|
|
{
|
|
SdlMixer.TraceLog.Trace();
|
|
return _PlayTag(mixer, tag, options);
|
|
}
|
|
|
|
[LibraryImport(Dll, EntryPoint = "MIX_PlayAudio")]
|
|
private static partial byte _PlayAudio(MixMixer mixer, MixAudio audio);
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static byte PlayAudio(MixMixer mixer, MixAudio audio)
|
|
{
|
|
SdlMixer.TraceLog.Trace();
|
|
return _PlayAudio(mixer, audio);
|
|
}
|
|
|
|
[LibraryImport(Dll, EntryPoint = "MIX_StopTrack")]
|
|
private static partial byte _StopTrack(MixTrack track, long fade_out_frames);
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static byte StopTrack(MixTrack track, long fade_out_frames)
|
|
{
|
|
SdlMixer.TraceLog.Trace();
|
|
return _StopTrack(track, fade_out_frames);
|
|
}
|
|
|
|
[LibraryImport(Dll, EntryPoint = "MIX_StopAllTracks")]
|
|
private static partial byte _StopAllTracks(MixMixer mixer, long fade_out_ms);
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static byte StopAllTracks(MixMixer mixer, long fade_out_ms)
|
|
{
|
|
SdlMixer.TraceLog.Trace();
|
|
return _StopAllTracks(mixer, fade_out_ms);
|
|
}
|
|
|
|
[LibraryImport(
|
|
Dll,
|
|
EntryPoint = "MIX_StopTag",
|
|
StringMarshalling = StringMarshalling.Custom,
|
|
StringMarshallingCustomType = typeof(CustomStringMarshaller)
|
|
)]
|
|
private static partial byte _StopTag(MixMixer mixer, string tag, long fade_out_ms);
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static byte StopTag(MixMixer mixer, string tag, long fade_out_ms)
|
|
{
|
|
SdlMixer.TraceLog.Trace();
|
|
return _StopTag(mixer, tag, fade_out_ms);
|
|
}
|
|
|
|
[LibraryImport(Dll, EntryPoint = "MIX_PauseTrack")]
|
|
private static partial byte _PauseTrack(MixTrack track);
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static byte PauseTrack(MixTrack track)
|
|
{
|
|
SdlMixer.TraceLog.Trace();
|
|
return _PauseTrack(track);
|
|
}
|
|
|
|
[LibraryImport(Dll, EntryPoint = "MIX_PauseAllTracks")]
|
|
private static partial byte _PauseAllTracks(MixMixer mixer);
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static byte PauseAllTracks(MixMixer mixer)
|
|
{
|
|
SdlMixer.TraceLog.Trace();
|
|
return _PauseAllTracks(mixer);
|
|
}
|
|
|
|
[LibraryImport(
|
|
Dll,
|
|
EntryPoint = "MIX_PauseTag",
|
|
StringMarshalling = StringMarshalling.Custom,
|
|
StringMarshallingCustomType = typeof(CustomStringMarshaller)
|
|
)]
|
|
private static partial byte _PauseTag(MixMixer mixer, string tag);
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static byte PauseTag(MixMixer mixer, string tag)
|
|
{
|
|
SdlMixer.TraceLog.Trace();
|
|
return _PauseTag(mixer, tag);
|
|
}
|
|
|
|
[LibraryImport(Dll, EntryPoint = "MIX_ResumeTrack")]
|
|
private static partial byte _ResumeTrack(MixTrack track);
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static byte ResumeTrack(MixTrack track)
|
|
{
|
|
SdlMixer.TraceLog.Trace();
|
|
return _ResumeTrack(track);
|
|
}
|
|
|
|
[LibraryImport(Dll, EntryPoint = "MIX_ResumeAllTracks")]
|
|
private static partial byte _ResumeAllTracks(MixMixer mixer);
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static byte ResumeAllTracks(MixMixer mixer)
|
|
{
|
|
SdlMixer.TraceLog.Trace();
|
|
return _ResumeAllTracks(mixer);
|
|
}
|
|
|
|
[LibraryImport(
|
|
Dll,
|
|
EntryPoint = "MIX_ResumeTag",
|
|
StringMarshalling = StringMarshalling.Custom,
|
|
StringMarshallingCustomType = typeof(CustomStringMarshaller)
|
|
)]
|
|
private static partial byte _ResumeTag(MixMixer mixer, string tag);
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static byte ResumeTag(MixMixer mixer, string tag)
|
|
{
|
|
SdlMixer.TraceLog.Trace();
|
|
return _ResumeTag(mixer, tag);
|
|
}
|
|
|
|
[LibraryImport(Dll, EntryPoint = "MIX_TrackPlaying")]
|
|
private static partial byte _TrackPlaying(MixTrack track);
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static byte TrackPlaying(MixTrack track)
|
|
{
|
|
SdlMixer.TraceLog.Trace();
|
|
return _TrackPlaying(track);
|
|
}
|
|
|
|
[LibraryImport(Dll, EntryPoint = "MIX_TrackPaused")]
|
|
private static partial byte _TrackPaused(MixTrack track);
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static byte TrackPaused(MixTrack track)
|
|
{
|
|
SdlMixer.TraceLog.Trace();
|
|
return _TrackPaused(track);
|
|
}
|
|
|
|
[LibraryImport(Dll, EntryPoint = "MIX_SetMixerGain")]
|
|
private static partial byte _SetMixerGain(MixMixer mixer, float gain);
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static byte SetMixerGain(MixMixer mixer, float gain)
|
|
{
|
|
SdlMixer.TraceLog.Trace();
|
|
return _SetMixerGain(mixer, gain);
|
|
}
|
|
|
|
[LibraryImport(Dll, EntryPoint = "MIX_GetMixerGain")]
|
|
private static partial float _GetMixerGain(MixMixer mixer);
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static float GetMixerGain(MixMixer mixer)
|
|
{
|
|
SdlMixer.TraceLog.Trace();
|
|
return _GetMixerGain(mixer);
|
|
}
|
|
|
|
[LibraryImport(Dll, EntryPoint = "MIX_SetTrackGain")]
|
|
private static partial byte _SetTrackGain(MixTrack track, float gain);
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static byte SetTrackGain(MixTrack track, float gain)
|
|
{
|
|
SdlMixer.TraceLog.Trace();
|
|
return _SetTrackGain(track, gain);
|
|
}
|
|
|
|
[LibraryImport(Dll, EntryPoint = "MIX_GetTrackGain")]
|
|
private static partial float _GetTrackGain(MixTrack track);
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static float GetTrackGain(MixTrack track)
|
|
{
|
|
SdlMixer.TraceLog.Trace();
|
|
return _GetTrackGain(track);
|
|
}
|
|
|
|
[LibraryImport(
|
|
Dll,
|
|
EntryPoint = "MIX_SetTagGain",
|
|
StringMarshalling = StringMarshalling.Custom,
|
|
StringMarshallingCustomType = typeof(CustomStringMarshaller)
|
|
)]
|
|
private static partial byte _SetTagGain(MixMixer mixer, string tag, float gain);
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static byte SetTagGain(MixMixer mixer, string tag, float gain)
|
|
{
|
|
SdlMixer.TraceLog.Trace();
|
|
return _SetTagGain(mixer, tag, gain);
|
|
}
|
|
|
|
[LibraryImport(Dll, EntryPoint = "MIX_SetMixerFrequencyRatio")]
|
|
private static partial byte _SetMixerFrequencyRatio(MixMixer mixer, float ratio);
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static byte SetMixerFrequencyRatio(MixMixer mixer, float ratio)
|
|
{
|
|
SdlMixer.TraceLog.Trace();
|
|
return _SetMixerFrequencyRatio(mixer, ratio);
|
|
}
|
|
|
|
[LibraryImport(Dll, EntryPoint = "MIX_GetMixerFrequencyRatio")]
|
|
private static partial float _GetMixerFrequencyRatio(MixMixer mixer);
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static float GetMixerFrequencyRatio(MixMixer mixer)
|
|
{
|
|
SdlMixer.TraceLog.Trace();
|
|
return _GetMixerFrequencyRatio(mixer);
|
|
}
|
|
|
|
[LibraryImport(Dll, EntryPoint = "MIX_SetTrackFrequencyRatio")]
|
|
private static partial byte _SetTrackFrequencyRatio(MixTrack track, float ratio);
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static byte SetTrackFrequencyRatio(MixTrack track, float ratio)
|
|
{
|
|
SdlMixer.TraceLog.Trace();
|
|
return _SetTrackFrequencyRatio(track, ratio);
|
|
}
|
|
|
|
[LibraryImport(Dll, EntryPoint = "MIX_GetTrackFrequencyRatio")]
|
|
private static partial float _GetTrackFrequencyRatio(MixTrack track);
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static float GetTrackFrequencyRatio(MixTrack track)
|
|
{
|
|
SdlMixer.TraceLog.Trace();
|
|
return _GetTrackFrequencyRatio(track);
|
|
}
|
|
|
|
[LibraryImport(Dll, EntryPoint = "MIX_SetTrackOutputChannelMap")]
|
|
private static partial byte _SetTrackOutputChannelMap(MixTrack track, int* chmap, int count);
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static byte SetTrackOutputChannelMap(MixTrack track, int* chmap, int count)
|
|
{
|
|
SdlMixer.TraceLog.Trace();
|
|
return _SetTrackOutputChannelMap(track, chmap, count);
|
|
}
|
|
|
|
[LibraryImport(Dll, EntryPoint = "MIX_SetTrackStereo")]
|
|
private static partial byte _SetTrackStereo(MixTrack track, MixStereoGains* gains);
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static byte SetTrackStereo(MixTrack track, MixStereoGains* gains)
|
|
{
|
|
SdlMixer.TraceLog.Trace();
|
|
return _SetTrackStereo(track, gains);
|
|
}
|
|
|
|
[LibraryImport(Dll, EntryPoint = "MIX_SetTrack3DPosition")]
|
|
private static partial byte _SetTrack3DPosition(MixTrack track, MixPoint3D* position);
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static byte SetTrack3DPosition(MixTrack track, MixPoint3D* position)
|
|
{
|
|
SdlMixer.TraceLog.Trace();
|
|
return _SetTrack3DPosition(track, position);
|
|
}
|
|
|
|
[LibraryImport(Dll, EntryPoint = "MIX_GetTrack3DPosition")]
|
|
private static partial byte _GetTrack3DPosition(MixTrack track, MixPoint3D* position);
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static byte GetTrack3DPosition(MixTrack track, MixPoint3D* position)
|
|
{
|
|
SdlMixer.TraceLog.Trace();
|
|
return _GetTrack3DPosition(track, position);
|
|
}
|
|
|
|
[LibraryImport(Dll, EntryPoint = "MIX_CreateGroup")]
|
|
private static partial MixGroup _CreateGroup(MixMixer mixer);
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static MixGroup CreateGroup(MixMixer mixer)
|
|
{
|
|
SdlMixer.TraceLog.Trace();
|
|
return _CreateGroup(mixer);
|
|
}
|
|
|
|
[LibraryImport(Dll, EntryPoint = "MIX_DestroyGroup")]
|
|
private static partial void _DestroyGroup(MixGroup group);
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static void DestroyGroup(MixGroup group)
|
|
{
|
|
SdlMixer.TraceLog.Trace();
|
|
_DestroyGroup(group);
|
|
}
|
|
|
|
[LibraryImport(Dll, EntryPoint = "MIX_GetGroupProperties")]
|
|
private static partial uint _GetGroupProperties(MixGroup group);
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static uint GetGroupProperties(MixGroup group)
|
|
{
|
|
SdlMixer.TraceLog.Trace();
|
|
return _GetGroupProperties(group);
|
|
}
|
|
|
|
[LibraryImport(Dll, EntryPoint = "MIX_GetGroupMixer")]
|
|
private static partial MixMixer _GetGroupMixer(MixGroup group);
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static MixMixer GetGroupMixer(MixGroup group)
|
|
{
|
|
SdlMixer.TraceLog.Trace();
|
|
return _GetGroupMixer(group);
|
|
}
|
|
|
|
[LibraryImport(Dll, EntryPoint = "MIX_SetTrackGroup")]
|
|
private static partial byte _SetTrackGroup(MixTrack track, MixGroup group);
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static byte SetTrackGroup(MixTrack track, MixGroup group)
|
|
{
|
|
SdlMixer.TraceLog.Trace();
|
|
return _SetTrackGroup(track, group);
|
|
}
|
|
|
|
[LibraryImport(Dll, EntryPoint = "MIX_SetTrackStoppedCallback")]
|
|
private static partial byte _SetTrackStoppedCallback(
|
|
MixTrack track,
|
|
delegate* unmanaged[Cdecl]<void*, MixTrack, void> cb,
|
|
void* userdata
|
|
);
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static byte SetTrackStoppedCallback(
|
|
MixTrack track,
|
|
delegate* unmanaged[Cdecl]<void*, MixTrack, void> cb,
|
|
void* userdata
|
|
)
|
|
{
|
|
SdlMixer.TraceLog.Trace();
|
|
return _SetTrackStoppedCallback(track, cb, userdata);
|
|
}
|
|
|
|
[LibraryImport(Dll, EntryPoint = "MIX_SetTrackRawCallback")]
|
|
private static partial byte _SetTrackRawCallback(
|
|
MixTrack track,
|
|
delegate* unmanaged[Cdecl]<void*, MixTrack, SdlAudioSpec*, float*, int, void> cb,
|
|
void* userdata
|
|
);
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static byte SetTrackRawCallback(
|
|
MixTrack track,
|
|
delegate* unmanaged[Cdecl]<void*, MixTrack, SdlAudioSpec*, float*, int, void> cb,
|
|
void* userdata
|
|
)
|
|
{
|
|
SdlMixer.TraceLog.Trace();
|
|
return _SetTrackRawCallback(track, cb, userdata);
|
|
}
|
|
|
|
[LibraryImport(Dll, EntryPoint = "MIX_SetTrackCookedCallback")]
|
|
private static partial byte _SetTrackCookedCallback(
|
|
MixTrack track,
|
|
delegate* unmanaged[Cdecl]<void*, MixTrack, SdlAudioSpec*, float*, int, void> cb,
|
|
void* userdata
|
|
);
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static byte SetTrackCookedCallback(
|
|
MixTrack track,
|
|
delegate* unmanaged[Cdecl]<void*, MixTrack, SdlAudioSpec*, float*, int, void> cb,
|
|
void* userdata
|
|
)
|
|
{
|
|
SdlMixer.TraceLog.Trace();
|
|
return _SetTrackCookedCallback(track, cb, userdata);
|
|
}
|
|
|
|
[LibraryImport(Dll, EntryPoint = "MIX_SetGroupPostMixCallback")]
|
|
private static partial byte _SetGroupPostMixCallback(
|
|
MixGroup group,
|
|
delegate* unmanaged[Cdecl]<void*, MixGroup, SdlAudioSpec*, float*, int, void> cb,
|
|
void* userdata
|
|
);
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static byte SetGroupPostMixCallback(
|
|
MixGroup group,
|
|
delegate* unmanaged[Cdecl]<void*, MixGroup, SdlAudioSpec*, float*, int, void> cb,
|
|
void* userdata
|
|
)
|
|
{
|
|
SdlMixer.TraceLog.Trace();
|
|
return _SetGroupPostMixCallback(group, cb, userdata);
|
|
}
|
|
|
|
[LibraryImport(Dll, EntryPoint = "MIX_SetPostMixCallback")]
|
|
private static partial byte _SetPostMixCallback(
|
|
MixMixer mixer,
|
|
delegate* unmanaged[Cdecl]<void*, MixMixer, SdlAudioSpec*, float*, int, void> cb,
|
|
void* userdata
|
|
);
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static byte SetPostMixCallback(
|
|
MixMixer mixer,
|
|
delegate* unmanaged[Cdecl]<void*, MixMixer, SdlAudioSpec*, float*, int, void> cb,
|
|
void* userdata
|
|
)
|
|
{
|
|
SdlMixer.TraceLog.Trace();
|
|
return _SetPostMixCallback(mixer, cb, userdata);
|
|
}
|
|
|
|
[LibraryImport(Dll, EntryPoint = "MIX_Generate")]
|
|
private static partial int _Generate(MixMixer mixer, void* buffer, int buflen);
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static int Generate(MixMixer mixer, void* buffer, int buflen)
|
|
{
|
|
SdlMixer.TraceLog.Trace();
|
|
return _Generate(mixer, buffer, buflen);
|
|
}
|
|
|
|
[LibraryImport(
|
|
Dll,
|
|
EntryPoint = "MIX_CreateAudioDecoder",
|
|
StringMarshalling = StringMarshalling.Custom,
|
|
StringMarshallingCustomType = typeof(CustomStringMarshaller)
|
|
)]
|
|
private static partial MixAudioDecoder _CreateAudioDecoder(string path, uint props);
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static MixAudioDecoder CreateAudioDecoder(string path, uint props)
|
|
{
|
|
SdlMixer.TraceLog.Trace();
|
|
return _CreateAudioDecoder(path, props);
|
|
}
|
|
|
|
[LibraryImport(Dll, EntryPoint = "MIX_CreateAudioDecoder_IO")]
|
|
private static partial MixAudioDecoder _CreateAudioDecoderIO(nint io, byte closeio, uint props);
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static MixAudioDecoder CreateAudioDecoderIO(nint io, byte closeio, uint props)
|
|
{
|
|
SdlMixer.TraceLog.Trace();
|
|
return _CreateAudioDecoderIO(io, closeio, props);
|
|
}
|
|
|
|
[LibraryImport(Dll, EntryPoint = "MIX_DestroyAudioDecoder")]
|
|
private static partial void _DestroyAudioDecoder(MixAudioDecoder audiodecoder);
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static void DestroyAudioDecoder(MixAudioDecoder audiodecoder)
|
|
{
|
|
SdlMixer.TraceLog.Trace();
|
|
_DestroyAudioDecoder(audiodecoder);
|
|
}
|
|
|
|
[LibraryImport(Dll, EntryPoint = "MIX_GetAudioDecoderProperties")]
|
|
private static partial uint _GetAudioDecoderProperties(MixAudioDecoder audiodecoder);
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static uint GetAudioDecoderProperties(MixAudioDecoder audiodecoder)
|
|
{
|
|
SdlMixer.TraceLog.Trace();
|
|
return _GetAudioDecoderProperties(audiodecoder);
|
|
}
|
|
|
|
[LibraryImport(Dll, EntryPoint = "MIX_GetAudioDecoderFormat")]
|
|
private static partial byte _GetAudioDecoderFormat(MixAudioDecoder audiodecoder, SdlAudioSpec* spec);
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static byte GetAudioDecoderFormat(MixAudioDecoder audiodecoder, SdlAudioSpec* spec)
|
|
{
|
|
SdlMixer.TraceLog.Trace();
|
|
return _GetAudioDecoderFormat(audiodecoder, spec);
|
|
}
|
|
|
|
[LibraryImport(Dll, EntryPoint = "MIX_DecodeAudio")]
|
|
private static partial int _DecodeAudio(
|
|
MixAudioDecoder audiodecoder,
|
|
void* buffer,
|
|
int buflen,
|
|
SdlAudioSpec* spec
|
|
);
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static int DecodeAudio(MixAudioDecoder audiodecoder, void* buffer, int buflen, SdlAudioSpec* spec)
|
|
{
|
|
SdlMixer.TraceLog.Trace();
|
|
return _DecodeAudio(audiodecoder, buffer, buflen, spec);
|
|
}
|
|
}
|
|
}
|
|
}
|