Hi,

What is the best way to play WAV files in VFP?
Been using Set Bell to and CHR(7) but been having
problems. For some unknown reason, there are times
that the sound will not play or will play at a later times
and overlaps with another playing sound.


Thanks.

Re: Play WAV files by O

O
Mon Apr 02 01:30:01 CDT 2007

This is a multi-part message in MIME format.

------=_NextPart_000_003F_01C77501.1BEDE0E0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hi,=20

You have several possibility,
1- you can use MCI dll, you have an example in Task Pane-> Solution =
Samples->Window Api-> Play multimedia files using MCI commands
2- you can use Windows MediaPlayer -> =
http://www.svfpug.com.au/assets/2005Jul/WMP/Help/index.htm
3- You can Use Acivex VideoLan Player -> it's the best solution for me.

Olivier

=20
"HerbertDB" <herbertdb@nospam.com> a =E9crit dans le message de news: =
%23nv%23obMdHHA.596@TK2MSFTNGP06.phx.gbl...
Hi,

What is the best way to play WAV files in VFP?
Been using Set Bell to and CHR(7) but been having
problems. For some unknown reason, there are times
that the sound will not play or will play at a later times
and overlaps with another playing sound.


Thanks.=20



------=_NextPart_000_003F_01C77501.1BEDE0E0
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2900.3059" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><STRONG><FONT face=3DArial color=3D#000080 size=3D2>Hi, =
</FONT></STRONG></DIV>
<DIV><STRONG><FONT face=3DArial color=3D#000080 =
size=3D2></FONT></STRONG>&nbsp;</DIV>
<DIV><STRONG><FONT face=3DArial color=3D#000080 size=3D2>You have =
several=20
possibility,</FONT></STRONG></DIV>
<DIV><FONT face=3DArial color=3D#000080 size=3D2><STRONG>1- you can use =
MCI dll, you=20
have an example in Task Pane-&gt; Solution Samples-&gt;Window Api-&gt;=20
</STRONG><A=20
href=3D"vfps:runsolution?filename=3Dmci_play&amp;type=3DF&amp;homedir=3DC=
:\PROGRAM FILES\MICROSOFT VISUAL FOXPRO 9\SAMPLES\Solution\forms"><FONT=20
color=3D#0033cc>Play multimedia files using MCI =
commands</FONT></A><STRONG><BR>2-=20
you can use Windows MediaPlayer -&gt; <A=20
href=3D"http://www.svfpug.com.au/assets/2005Jul/WMP/Help/index.htm">http:=
//www.svfpug.com.au/assets/2005Jul/WMP/Help/index.htm</A><BR>3-=20
You can Use Acivex VideoLan Player -&gt; it's the best solution for=20
me.</STRONG></FONT></DIV>
<DIV><STRONG><FONT face=3DArial color=3D#000080 =
size=3D2></FONT></STRONG>&nbsp;</DIV>
<DIV><STRONG><FONT face=3DArial color=3D#000080 =
size=3D2>Olivier</FONT></STRONG></DIV>
<DIV><STRONG><FONT face=3DArial color=3D#000080 =
size=3D2></FONT></STRONG>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<BLOCKQUOTE=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000080 2px solid; MARGIN-RIGHT: 0px">
<DIV>"HerbertDB" &lt;<A=20
href=3D"mailto:herbertdb@nospam.com">herbertdb@nospam.com</A>&gt; a =
=E9crit dans=20
le message de news: <A=20
=
href=3D"mailto:%23nv%23obMdHHA.596@TK2MSFTNGP06.phx.gbl">%23nv%23obMdHHA.=
596@TK2MSFTNGP06.phx.gbl</A>...</DIV>Hi,<BR><BR>What=20
is the best way to play WAV files in VFP?<BR>Been using Set Bell to =
and CHR(7)=20
but been having<BR>problems. For some unknown reason, there are =
times<BR>that=20
the sound will not play or will play at a later times<BR>and overlaps =
with=20
another playing sound.<BR><BR><BR>Thanks.=20
<BR><BR><BR></BLOCKQUOTE></BODY></HTML>

------=_NextPart_000_003F_01C77501.1BEDE0E0--


Re: Play WAV files by Zeke

Zeke
Tue Apr 03 09:22:06 CDT 2007

You could even do it in the old way:
set bell to ('c:\windows\media\ding.wav')

? Chr(7)







Re: Play WAV files by Zeke

Zeke
Tue Apr 03 09:23:17 CDT 2007

Sorry - was to quick - this was obviously already tried ;-((



Re: Play WAV files by O

O
Wed Apr 04 01:20:58 CDT 2007

This is a multi-part message in MIME format.

------=_NextPart_000_009A_01C77692.2CAC7170
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hi,

The solution is set Console ON, it's work always

*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
Function BeepInfos
*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
SET BELL TO '<Chemin>\BipInfos.WAV'
SET CONSOLE ON
?? CHR(7)
SET CONSOLE OFF

Olivier

"HerbertDB" <herbertdb@nospam.com> a =E9crit dans le message de news: =
%23nv%23obMdHHA.596@TK2MSFTNGP06.phx.gbl...
Hi,

What is the best way to play WAV files in VFP?
Been using Set Bell to and CHR(7) but been having
problems. For some unknown reason, there are times
that the sound will not play or will play at a later times
and overlaps with another playing sound.


Thanks.=20



------=_NextPart_000_009A_01C77692.2CAC7170
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2900.3059" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><STRONG><FONT face=3DArial color=3D#000080 =
size=3D2>Hi,</FONT></STRONG></DIV>
<DIV><STRONG><FONT face=3DArial color=3D#000080 =
size=3D2></FONT></STRONG>&nbsp;</DIV>
<DIV><STRONG><FONT face=3DArial color=3D#000080 size=3D2>The solution is =
set Console=20
ON, it's work always</FONT></STRONG><STRONG><FONT face=3DArial =
color=3D#000080=20
size=3D2></FONT></STRONG></DIV>
<DIV><STRONG><FONT face=3DArial color=3D#000080 =
size=3D2></FONT></STRONG>&nbsp;</DIV>
<DIV><STRONG><FONT face=3DArial color=3D#000080 =
size=3D2>*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D<BR>Function=20
BeepInfos<BR>*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D<BR>SET BELL TO =
'&lt;Chemin&gt;\BipInfos.WAV'<BR>SET=20
CONSOLE ON<BR>?? CHR(7)<BR>SET CONSOLE OFF<BR></FONT></STRONG></DIV>
<DIV><STRONG><FONT face=3DArial color=3D#000080 =
size=3D2>Olivier</FONT></STRONG></DIV>
<DIV><STRONG><FONT face=3DArial color=3D#000080 =
size=3D2></FONT></STRONG>&nbsp;</DIV>
<BLOCKQUOTE=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000080 2px solid; MARGIN-RIGHT: 0px">
<DIV>"HerbertDB" &lt;<A=20
href=3D"mailto:herbertdb@nospam.com">herbertdb@nospam.com</A>&gt; a =
=E9crit dans=20
le message de news: <A=20
=
href=3D"mailto:%23nv%23obMdHHA.596@TK2MSFTNGP06.phx.gbl">%23nv%23obMdHHA.=
596@TK2MSFTNGP06.phx.gbl</A>...</DIV>Hi,<BR><BR>What=20
is the best way to play WAV files in VFP?<BR>Been using Set Bell to =
and CHR(7)=20
but been having<BR>problems. For some unknown reason, there are =
times<BR>that=20
the sound will not play or will play at a later times<BR>and overlaps =
with=20
another playing sound.<BR><BR><BR>Thanks.=20
<BR><BR><BR></BLOCKQUOTE></BODY></HTML>

------=_NextPart_000_009A_01C77692.2CAC7170--