Re: Playing a sound with XPCE
- From: "aliba" <linden@xxxxxxxxxx>
- Date: 13 Dec 2006 06:23:47 -0800
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.
.
- Follow-Ups:
- Re: Playing a sound with XPCE
- From: Jan Wielemaker
- Re: Playing a sound with XPCE
- Prev by Date: Re: Syntax Error in GNU Prolog 1.2.16
- Next by Date: Re: Playing a sound with XPCE
- Previous by thread: Syntax Error in GNU Prolog 1.2.16
- Next by thread: Re: Playing a sound with XPCE
- Index(es):
Relevant Pages
|
|