On Linux, jtask is just a cover verb for 2!:0 and 2!:1, it does not
require a package to execute system commands
eg,
2!:0 'mplayer tata.wav' 
2!:1 'mplayer tata.wav' 

Чтв, 01 Ноя 2012, Gilles Kirouac писал(а):
> 
>   On my Linux system, the following will play a wave file 
> in a bash shell:
>    mplayer tata.wav   NB. Check the doc of mplayer
> 
>   Using the task script, you could call mplayer from J:
>    load'task'
> 
>    _1 fork_jtask_ 'mplayer tata.wav' 
> 
>    shell          'mplayer tata.wav' 
> 
>   Both will play a .wav file in sync, the first without an output, 
> the second with the same output as in bash.
> 
>   To fork the play without waiting, use fork_jtask_ without a left arg.
> 
>   In J701, task.ijs is under /system/main .
> 
>  ~ Gilles
> 
> 
> ---------- Original Message -----------
> From: Raul Miller <rauldmil...@gmail.com>
> To: programm...@jsoftware.com
> Sent: Tue, 30 Oct 2012 09:06:37 -0400
> Subject: Re: [Jprogramming] Playing WAV files
> 
> > Yes, I think you are right.  Using the cd mechanism documented at
> > http://jsoftware.com/help/user/dlls.htm to call relevant routines 
> > from a relevant .so file is probably the fastest way to play wav files.
> > ...
> ------- End of Original Message -------
> 
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm

-- 
regards,
====================================================
GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to