diff options
| author | Vlad-Stefan Harbuz <vlad@vladh.net> | 2022-02-07 13:08:52 +0100 |
|---|---|---|
| committer | Drew DeVault <sir@cmpwn.com> | 2022-02-07 18:56:08 +0100 |
| commit | 2276dc7ad067f7af7504783239103c1abd7b4433 (patch) | |
| tree | 20f2f98f4af8b2ff0efeb3b15f1a26e09702e908 /sdl2/audio.ha | |
| parent | correct indentation (diff) | |
| download | hare-chip8-2276dc7ad067f7af7504783239103c1abd7b4433.tar.gz | |
refactor names from e.g. sdl2::init() to sdl2::SDL_Init()
Signed-off-by: Vlad-Stefan Harbuz <vlad@vladh.net>
Diffstat (limited to 'sdl2/audio.ha')
| -rw-r--r-- | sdl2/audio.ha | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/sdl2/audio.ha b/sdl2/audio.ha index 42c4b95..1b78880 100644 --- a/sdl2/audio.ha +++ b/sdl2/audio.ha @@ -11,21 +11,21 @@ // || || || +---sample bit size---+ // || || || | | // 15 14 13 12 11 10 09 08 07 06 05 04 03 02 01 00 -export type audio_format = u16; +export type SDL_AudioFormat = u16; // Unsigned 8-bit samples -export def AUDIO_U8: audio_format = 0x0008; +export def AUDIO_U8: SDL_AudioFormat = 0x0008; // Signed 8-bit samples -export def AUDIO_S8: audio_format = 0x8008; +export def AUDIO_S8: SDL_AudioFormat = 0x8008; // Unsigned 16-bit samples, little-endian -export def AUDIO_U16LSB: audio_format = 0x0010; +export def AUDIO_U16LSB: SDL_AudioFormat = 0x0010; // Signed 16-bit samples, little-endian -export def AUDIO_S16LSB: audio_format = 0x8010; +export def AUDIO_S16LSB: SDL_AudioFormat = 0x8010; // Unsigned 16-bit samples, big-endian -export def AUDIO_U16MSB: audio_format = 0x1010; +export def AUDIO_U16MSB: SDL_AudioFormat = 0x1010; // Signed 16-bit samples, big-endian -export def AUDIO_S16MSB: audio_format = 0x9010; +export def AUDIO_S16MSB: SDL_AudioFormat = 0x9010; // Unsigned 16-bit samples -export def AUDIO_U16: audio_format = AUDIO_U16LSB; +export def AUDIO_U16: SDL_AudioFormat = AUDIO_U16LSB; // Signed 16-bit samples -export def AUDIO_S16: audio_format = AUDIO_S16LSB; +export def AUDIO_S16: SDL_AudioFormat = AUDIO_S16LSB; |
