-
Notifications
You must be signed in to change notification settings - Fork 0
/
sdl2_mixer.h
28 lines (23 loc) · 1.06 KB
/
sdl2_mixer.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// SPDX-FileCopyrightText: 2024 KUSANAGI Mitsuhisa <mikkun@mbg.nifty.com>
// SPDX-License-Identifier: GPL-3.0-or-later
#include <SDL2/SDL_mixer.h>
/* Enable API */
#define DEFAULT_SDL_MIXER_MAJOR_VERSION SDL_MIXER_MAJOR_VERSION
#define DEFAULT_SDL_MIXER_MINOR_VERSION SDL_MIXER_MINOR_VERSION
#define DEFAULT_SDL_MIXER_PATCHLEVEL SDL_MIXER_PATCHLEVEL
#define DEFAULT_MIX_DEFAULT_FREQUENCY MIX_DEFAULT_FREQUENCY
#define DEFAULT_MIX_DEFAULT_FORMAT MIX_DEFAULT_FORMAT
#define DEFAULT_MIX_DEFAULT_CHANNELS MIX_DEFAULT_CHANNELS
#define DEFAULT_MIX_MAX_VOLUME MIX_MAX_VOLUME
#define DEFAULT_AUDIO_U16SYS AUDIO_U16SYS
#define DEFAULT_AUDIO_S16SYS AUDIO_S16SYS
#define DEFAULT_AUDIO_S32SYS AUDIO_S32SYS
#define DEFAULT_AUDIO_F32SYS AUDIO_F32SYS
/* Handle Channels for Sound Effects */
#define DEFAULT_MIX_CHANNEL_POST MIX_CHANNEL_POST
#define ENTRY(VAR, CONST) \
{ \
&VAR##_node, #VAR, DEFAULT_##VAR, CONST \
}
#define NUM_SCALARS (sizeof(varinit) / sizeof(varinit[0]))
#define NUM_RESET (NUM_SCALARS - 1)