Lines Matching refs:cfg
204 function copy_playback(fn, cfg)
205 if cfg.ssh
206 cmd = sprintf('scp %s %s:%s/', fn, cfg.user, cfg.dir);
210 %cmd = sprintf('cp %s %s/', fn, cfg.dir);
215 function y = get_recording(fn, cfg)
216 if cfg.ssh
217 cmd = sprintf('scp %s:%s/%s %s', cfg.user, cfg.dir, fn, fn);
220 cmd = sprintf('cp %s/%s %s', cfg.dir, fn, fn);
228 function remote_play(fn, cfg)
229 if cfg.ssh
230 cmd = sprintf('ssh %s aplay -D%s %s/%s', cfg.user, cfg.dev, cfg.dir, fn);
233 cmd = sprintf('aplay -D%s %s/%s', cfg.dev, cfg.dir, fn);
239 function remote_capture(fn, cfg, t)
240 if cfg.ssh
242 cfg.user, cfg.dev, cfg.fmt, t, cfg.dir, fn);
246 cfg.dev, cfg.fmt, t, cfg.dir, fn);