🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: free.it.visual-basic
Article #2002

Re: Attendere la fine di un evento - PlaySound

#2002
From: Red_Sephiroth
Date: Mon, 27 Oct 2003 11:24
26 lines
1866 bytes
"Indian Revenge" <r.forni@libero.it> ha scritto nel messaggio
news:g9Xmb.69754$e6.2508736@twister2.libero.it...
> Ho utilizzato la funzione PlaySound:
>
> (Private Declare Function PlaySound Lib "winmm.dll" Alias "PlaySoundA"
> (ByVal lpszName As String, ByVal hModule As Long, ByVal dwFlags As Long)
As
> Long)
>
> tutto ok, solo che vorrei che il mio programma continuasse con
l'istruzione
> successiva solo dopo che il file .wav e' stato eseguito completamente.
>
> So che potrei mettere una pausa (sleep x), ma la x dipenderebbe dalla
durata
> dell'esecuzione del suono.
>
> Cos'altro si puo' fare?
>
> Grazie, RobyRoby

In teoria, se in dwFlags ci lasci 0, dovrebbe farlo per default di bloccare
tutto per eseguire il file e poi ripartire, no?

Ciao!
Technical Details
Message-ID: <Ff7nb.70694$e6.2545047@twister2.libero.it>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!nntp.infostrada.it!twister2.libero.it.POSTED!not-for-mail
References: <g9Xmb.69754$e6.2508736@twister2.libero.it>

Show Full Headers
Complete Article Headers
X-Google-Language: ITALIAN,ASCII-7-bit
X-Google-Thread: f94ee,181ef0313b5e1bfc
X-Google-Attributes: gidf94ee,public
X-Google-Thread: 10b997,181ef0313b5e1bfc
X-Google-Attributes: gid10b997,public
X-Google-ArrivalTime: 2003-10-27 03:24:21 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!nntp.infostrada.it!twister2.libero.it.POSTED!not-for-mail
From: "Red_Sephiroth" <marco@tesi-online.it>
Newsgroups: free.it.visual-basic,it.comp.lang.visual-basic
References: <g9Xmb.69754$e6.2508736@twister2.libero.it>
Subject: Re: Attendere la fine di un evento - PlaySound
Lines: 28
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2600.0000
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
Message-ID: <Ff7nb.70694$e6.2545047@twister2.libero.it>
Date: Mon, 27 Oct 2003 11:24:21 GMT
NNTP-Posting-Host: 151.37.71.22
X-Complaints-To: abuse@net24.it
X-Trace: twister2.libero.it 1067253861 151.37.71.22 (Mon, 27 Oct 2003 12:24:21 MET)
NNTP-Posting-Date: Mon, 27 Oct 2003 12:24:21 MET
Organization: [Infostrada]