Clamps Dictionary
make-sf-player
Function
(make-sf-player file)
Return a soundfile player closure. To start playback, call the closure with :start as first argument and an optional number indicating a startoffset in seconds. To stop playback, call the returned closure with :stop as first argument. To pause the playback, call the returned closure with :pause as first argument.
Arguments
file |
A string indicating the full path of the file to play back. |
Example
(defparameter *my-player* (make-sf-player "/tmp/rec-1.wav")) (funcall *my-player* :start) (funcall *my-player* :pause) (funcall *my-player* :start) (funcall *my-player* :stop)