main logo
Subject: Re: Play sound without chr(7)/set bell to 'file'
Author: Andy Davies
Posted: 2006/10/31 12:33:01
 
View Entire Thread
New Search


Charlie Coleman said:
've used this:

*-- Playsound - parameters file, module?, type (play flags)
*-- Pass: pnPlayType - 1 - Ascynch, 2 - Nodefault sound 0 -Synch
*-- 4 - Kill currently playing sound
*-- 8 - Continous

nice - certainly better than running xyz.wav and waiting for microsoft
whatever to load.

for an exe I found I needed (Notice the Synch flag):

DECLARE INTEGER PlaySound IN WINMM.dll AS WinPlaySound STRING cWave, ;
INTEGER nModule, INTEGER nType

* Sample call:
_screen.Visible= .F. && better SCREEN=OFF in config.fpw
WinPlaySound("c:\sit.wav",0,0)

Andrew Davies  MBCS CITP
  - AndyD        8-)#


**********************************************************************

This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager.

This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses.

Please contact internet.administrators /AT/ manchester D.O.T gov.uk with any queries.

**********************************************************************




 
©2006 Andy Davies
<-- Prior Message New Search Next Message -->