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.
Caution though: when you are calling definitions from .so files, they can and will crash and you'll have to restart your J process. If you have everything saved in scripts and you are using the jhs interface, that can be relatively painless (set your server to restart whenever it crashes). FYI, -- Raul On Tue, Oct 30, 2012 at 8:22 AM, Y-01 <darling.ki...@gmail.com> wrote: > platform = simple Linux x64 (3.5.3) with gentoo. > > So, if there is no open lib.ijs the simplest way to play WAV (and play it > fast) - write some.ijs which has declaration for some shared library > (playwav.so) and use verbs from it? Or there is much more simple way? > Yu Ka > On Mon, Oct 29, 2012 at 9:50 PM, Raul Miller <rauldmil...@gmail.com> wrote: > >> Which platform? >> >> Last I checked we had a media/wav addon but it was built for windows >> -- needed interest from *nix folk to do portability, or something. >> >> -- >> Raul >> >> On Mon, Oct 29, 2012 at 4:12 PM, Y-01 <darling.ki...@gmail.com> wrote: >> > Hi, All >> > >> > Is there *lib.ijs for playing .WAV files? Or what is the most classical >> way >> > to do it fast without special lib? (exec shell command 'aplay file.wav' >> > isn't too fast)) >> > >> > Yu Ka >> > ---------------------------------------------------------------------- >> > For information about J forums see http://www.jsoftware.com/forums.htm >> ---------------------------------------------------------------------- >> For information about J forums see http://www.jsoftware.com/forums.htm >> > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm