Re: Playing a sound with XPCE



Jan Wielemaker wrote:
On 2006-10-20, aliba <linden@xxxxxxxxxx> wrote:
win_shell(open, 'C:/WINDOWS/Media/a.wav', hide),

<snip>

However, this is not satisfactory for the following reasons: 1) It
takes between ten and twenty seconds for the sound to be heard (the
sound should be heard at the same time, or very shortly after its
corresponding letter appears on the screen). 2) The "hide" option in
"win_shell/3" doesn't always function under WindowsXP.

Any suggestion for improving this code would be welcome.

I guess you have various options:

* Have an application open for playing sound and talk to it
using the Prolog DDE interface, network communication or the
activeX interface (search for swi-prolog and activeX).

* Find a way to create sound from C(++) and link it to Prolog
throught the foreign interface.

Cheers --- Jan

Thank you for your reply. My apologies for answering so late, as I've
been exploring the various alternatives you indicated. For the time
being, I made my sound DB in C++ and it works fine. However, I still
would like to experiment with the activeX interface but I was unable to
find the 'Swiactx.pl' and .dll files mentioned in David Hovel's article
on "ActiveX Extensions to SWI-Prolog" (March 17, 2000), nor the other
files also mentioned in that article, namely 'Swix.dll' and the
additional 'Proquery' .dll file. Do these programs still exist and, if
so, how can they be obtained?

Thank you in advance for your help.

.



Relevant Pages

  • Re: Playing a sound with XPCE
    ... activeX interface. ... Find a way to create sound from Cand link it to Prolog ... Portability is an important objective of SWI-Prolog. ...
    (comp.lang.prolog)
  • Re: Playing a sound with XPCE
    ... activeX interface. ... Find a way to create sound from Cand link it to Prolog ... Portability is an important objective of SWI-Prolog. ...
    (comp.lang.prolog)
  • Re: Playing a sound with XPCE
    ... takes between ten and twenty seconds for the sound to be heard (the ... using the Prolog DDE interface, ... activeX interface. ...
    (comp.lang.prolog)
  • Windows XP audio device disappears from audio properties, suspected .dll problem
    ... my audio device disappeared completely from the ... moving my PCI sound card to a different slot. ... What .dll files are involved with windows audio? ...
    (microsoft.public.windowsxp.help_and_support)