Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Multimedia (https://www.delphipraxis.net/16-multimedia/)
-   -   Delphi Wav interruption (https://www.delphipraxis.net/42235-wav-interruption.html)

delphi_goldy 16. Mär 2005 06:04


Wav interruption
 
Hi!

How can I interrupt wav that is currently playing?


Code:
PlaySound('Something', 0, SND_ASNYC);
[edit=sakura] Bitte warte mit dem erneuten nachfragen mindestens 24 Stunden! Mfg, sakura[/edit]

delphi_goldy 17. Mär 2005 05:58

Re: Wav interruption
 
Hallo? Niemand kann mir helfen!!!


:wall: :wall: :wall: :wall:

Muetze1 17. Mär 2005 11:57

Re: Wav interruption
 
Hi!

Why don't you take a look in the MSDN PlaySound()? There is the following description about the first parameter:

Zitat:

Zitat von MSDN PlaySound()
A string that specifies the sound to play. The maximum length, including the null terminator, is 256 characters. If this parameter is NULL, any currently playing waveform sound is stopped. To stop a non-waveform sound, specify SND_PURGE in the fdwSound parameter.

So...

Delphi-Quellcode:
PlaySound(Nil, 0, 0);
Regards,
Muetze1

delphi_goldy 17. Mär 2005 13:50

Re: Wav interruption
 
Ah-ha!

It works! It lives!... :angel:

Thnx!
But...


... what if I change my mind and start playing another wav synchronously?

How now? :wiejetzt:


Alle Zeitangaben in WEZ +1. Es ist jetzt 04:25 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz