mirror of https://github.com/ppy/SDL3-CS.git
20 lines
686 B
C#
20 lines
686 B
C#
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
|
// See the LICENCE file in the repository root for full licence text.
|
|
|
|
using static SDL.SDL3;
|
|
|
|
namespace SDL
|
|
{
|
|
public static unsafe partial class SDL3_mixer
|
|
{
|
|
[Constant]
|
|
public static readonly SDL_AudioFormat MIX_DEFAULT_FORMAT = SDL_AUDIO_S16;
|
|
|
|
[Macro]
|
|
public static bool SDL_MIXER_VERSION_ATLEAST(int X, int Y, int Z) =>
|
|
((SDL_MIXER_MAJOR_VERSION >= X) &&
|
|
(SDL_MIXER_MAJOR_VERSION > X || SDL_MIXER_MINOR_VERSION >= Y) &&
|
|
(SDL_MIXER_MAJOR_VERSION > X || SDL_MIXER_MINOR_VERSION > Y || SDL_MIXER_MICRO_VERSION >= Z));
|
|
}
|
|
}
|