Created
November 18, 2013 19:49
-
-
Save jbclements/7534202 to your computer and use it in GitHub Desktop.
a short file that provides a function to tell you whether recording is working.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#lang racket | |
(require rsound) | |
(provide does-recording-work?) | |
;; try to record an incredibly short sound | |
(define (does-recording-work?) | |
(with-handlers ([exn:fail? (lambda (exn) false)]) | |
(record-sound 10) | |
true)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment