[CM] re: samples->seconds
Anders Vinjar
andersvi@extern.uio.no
Thu, 09 Sep 2004 13:36:58 +0200
You can set the default by something like
(setf *clm-srate* 44100)
somewhere (you find these in "defaults.lisp")
However, its easy to get confused, as (mus-srate) ignores the
initial value of *clm-srate*, and seems to stick with its last
value (from call on with-sound),
* *clm-srate*
44100
* (mus-srate)
22050.0
* (with-sound (:srate 48000 :play nil)
(format t "(mus-srate) = ~A, *srate* = ~A, *clm-srate* = ~A"
(clm::mus-srate)
clm::*srate*
clm::*clm-srate*))
(mus-srate) = 48000.0, *srate* = 48000, *clm-srate* = 44100
"test.snd"
* clm::*srate*
44100
* (clm::mus-srate)
48000.0
*
Maybe a switch to configure: --with-srate=48000 or some such?