[CM] Play (snd-ls RT)

Kjetil S. Matheussen k.s.matheussen at notam02.no
Thu Nov 6 15:59:37 PST 2008



On Fri, 7 Nov 2008, Esben Stien wrote:

> When I call (play), it seems to call another function than when I hit
> space inside Snd.
>
> I know this because if I evaluate (play), I get very choppy audio, but
> if I hit space inside Snd, everything is alot more smoother.
>
> I'm running snd-ls with scheme.
>


(play) is snd's built in playing function. snd-ls
doesn't use that one, at least not when running jack,
but instead uses the player in rt-player.scm

The following wrapper-functions provided by snd_conffile.scm
automatically selects the best player:

(define* (c-play #:optional samp)
   (-> (c-p) play samp))
(define (c-stop)
   (-> (c-p) stop))
(define (c-pause)
   (-> (c-p) pause))
(define (c-continue)
   (-> (c-p) continue))
(define (c-play-selection)
   (-> (c-p) play-selection))

So you probably want to use (c-play) instead of (play).



More information about the Cmdist mailing list