summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--2d/audio.scm6
1 files changed, 4 insertions, 2 deletions
diff --git a/2d/audio.scm b/2d/audio.scm
index 0335eee..3accb8b 100644
--- a/2d/audio.scm
+++ b/2d/audio.scm
@@ -25,7 +25,8 @@
#:use-module (srfi srfi-9)
#:use-module (srfi srfi-2)
#:use-module ((sdl mixer) #:prefix SDL:)
- #:export (load-sample
+ #:export (enable-audio
+ load-sample
sample?
sample-audio
sample-volume
@@ -44,7 +45,8 @@
music-paused?
music-playing?))
-(SDL:open-audio)
+(define (enable-audio)
+ (SDL:open-audio))
;; Used to wrap SDL audio functions whose return values should be
;; ignored.