play-sound should deal with paths

svn: r807
This commit is contained in:
Eli Barzilay 2005-09-09 00:01:08 +00:00
parent 39a44d0849
commit bd023260c2

View File

@ -55,10 +55,10 @@
(define (play-sound f async?)
(if (not (eq? (system-type) 'unix))
(wx:play-sound f async?)
(begin
(let ([f (if (path? f) (path->string f))])
(unless (string? f)
(raise-type-error 'play-sound "string" f))
(let* ([subpath (system-library-subpath)]
(let* ([subpath (path->string (system-library-subpath))]
[make-pattern (lambda (s) (string-append ".*" s ".*"))]
[b (box
(cond