diff options
author | David Thompson <dthompson2@worcester.edu> | 2015-12-20 12:15:44 -0500 |
---|---|---|
committer | David Thompson <dthompson2@worcester.edu> | 2015-12-20 12:18:15 -0500 |
commit | 2e70a730854197b66992b70075fa8235b767a45b (patch) | |
tree | e6c438a9b49fd6be56fe986ba9de6b37d63fe5d8 /sdl2/bindings.scm | |
parent | 4129070b6a39ffba8e7cf8860c40a831235d9f62 (diff) |
Add SDL2_mixer bindings.
* sdl2/bindings.scm: Add "AUDIO_*" constants.
* sdl2/bindings/mixer.scm: New file.
* sdl2/mixer.scm: New file.
* Makefile.am (SOURCES): Add new files.
Diffstat (limited to 'sdl2/bindings.scm')
-rw-r--r-- | sdl2/bindings.scm | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/sdl2/bindings.scm b/sdl2/bindings.scm index 7edd7b2..1672b0d 100644 --- a/sdl2/bindings.scm +++ b/sdl2/bindings.scm @@ -855,3 +855,23 @@ RETURN-TYPE and accept arguments of ARG-TYPES." (define-foreign sdl-load-bmp-rw '* "SDL_LoadBMP_RW" (list '* int)) + + +;;; +;;; Audio +;;; + +(define-public AUDIO_U8 #x0008) +(define-public AUDIO_S8 #x8008) +(define-public AUDIO_U16LSB #x0010) +(define-public AUDIO_S16LSB #x8010) +(define-public AUDIO_U16MSB #x1010) +(define-public AUDIO_S16MSB #x9010) +(define-public AUDIO_U16 AUDIO_U16LSB) +(define-public AUDIO_S16 AUDIO_S16LSB) +(define-public AUDIO_S32LSB #x8020) +(define-public AUDIO_S32MSB #x9020) +(define-public AUDIO_S32 AUDIO_S32LSB) +(define-public AUDIO_F32LSB #x8120) +(define-public AUDIO_F32MSB #x9120) +(define-public AUDIO_F32 AUDIO_F32LSB) |