Debian Codegraph @

lib-src/libnyquist/nyquist/sys/unix/sparc/system.lsp

raw
1 ; machine.lsp -- machine/system-dependent definitions
2 ; sparc
3
4 (setf *default-sound-srate* 8192)
5
6 (if (not (boundp '*default-sf-format*))
7 (setf *default-sf-format* snd-head-NeXT))
8
9 (if (not (boundp '*default-sound-file*))
10 (compute-default-sound-file))
11
12 (if (not (boundp '*default-sf-dir*))
13 (setf *default-sf-dir* "/tmp"))
14
15 (if (not (boundp '*default-sf-mode*))
16 (setf *default-sf-mode* snd-mode-pcm))
17
18 (if (not (boundp '*default-sf-bits*))
19 (setf *default-sf-bits* 16))
20
21 ; local definition for play
22
23 (defun r ()
24 (system (format nil
25 "play ~A"
26 *default-sound-file*)))
27
28 (defmacro play (expr)
29 `(prog (specs)
30 (setf specs (s-save ,expr NY:ALL *default-sound-file*))
31 (r)))
32
33