Skip to content

Instantly share code, notes, and snippets.

@jbclements
Created November 18, 2013 19:49
Show Gist options
  • Save jbclements/7534202 to your computer and use it in GitHub Desktop.
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.
#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