summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--2d/audio.scm2
-rw-r--r--2d/window.scm2
2 files changed, 2 insertions, 2 deletions
diff --git a/2d/audio.scm b/2d/audio.scm
index 2978a22..15eaaa5 100644
--- a/2d/audio.scm
+++ b/2d/audio.scm
@@ -26,6 +26,8 @@
#:use-module (srfi srfi-2)
#:use-module ((sdl mixer) #:prefix SDL:))
+(SDL:open-audio)
+
;; Wrapper over SDL audio objects.
(define-record-type <sample>
(make-sample audio)
diff --git a/2d/window.scm b/2d/window.scm
index 1d82a97..c62c7b6 100644
--- a/2d/window.scm
+++ b/2d/window.scm
@@ -73,7 +73,6 @@
;; Initialize everything
(SDL:enable-unicode #t)
(SDL:init 'everything)
- (SDL:open-audio)
;; Open SDL window in OpenGL mode.
(SDL:set-video-mode width height 24 flags)
(SDL:set-caption (window-title window))
@@ -92,7 +91,6 @@
(define (close-window)
"Close the currently open window and audio."
- (SDL:close-audio)
(SDL:quit))
(define-syntax-rule (with-window window body ...)