Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Sonstige Fragen zu Delphi (https://www.delphipraxis.net/19-sonstige-fragen-zu-delphi/)
-   -   Delphi PlaySound und SndPlaySound (https://www.delphipraxis.net/53117-playsound-und-sndplaysound.html)

ManuMF 10. Sep 2005 14:12


PlaySound und SndPlaySound
 
Hallo,

was ist eigentlich der Unterschied (außer in der Syntax ;-) ) zwischen PlaySound und SndPlaySound?
Hier im Forum habe ich schon beide Befehle gelesen.

Gruß,
ManuMF

turboPASCAL 10. Sep 2005 14:35

Re: PlaySound und SndPlaySound
 
Zitat:

Zitat von Delphi Hilfe
The sndPlaySound function plays a waveform sound specified either by a filename or by an entry in the registry or the WIN.INI file. This function offers a subset of the functionality of the PlaySound function; sndPlaySound is being maintained for backward compatibility.

sndPlaySound ist halt etwas älter und aus kompatibilitätsgründen noch vorhanden. Bei der PlaySound function kann man direct ein Recourcenhandle angeben.

Delphi-Quellcode:
// Wavedatei aus Resource laden und abspielen
PlaySound('WaveRes', hInstance, SND_RESOURCE or SND_ASYNC);

ManuMF 10. Sep 2005 18:59

Re: PlaySound und SndPlaySound
 
OK, verstehe.

Danke,
ManuMF


Alle Zeitangaben in WEZ +1. Es ist jetzt 23:58 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