-
Notifications
You must be signed in to change notification settings - Fork 1
/
raylib-audio.scm
34 lines (23 loc) · 937 Bytes
/
raylib-audio.scm
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
29
30
31
32
33
;;; Audio Loading and Playing Functions (Module: audio)
;; Audio device management functions
(define init-audio-device
(foreign-lambda void "InitAudioDevice"))
(define close-audio-device
(foreign-lambda void "CloseAudioDevice"))
;; Wave/Sound loading/unloading functions
(foreign-constructor load-sound
"LoadSound"
sound
(c-pointer (struct Sound))
((c-string fileName)))
(foreign-define-with-struct unload-sound
"UnloadSound"
void
(((c-pointer (struct Sound)) sound)))
;; Wave/Sound management functions
(foreign-define-with-struct play-sound
"PlaySound"
void
(((c-pointer (struct Sound)) soundToPlay)))
;; Music management functions
;; AudioStream management functions