Einzelnen Beitrag anzeigen

Daniel
(Co-Admin)

Registriert seit: 30. Mai 2002
Ort: Hamburg
13.919 Beiträge
 
Delphi 10.4 Sydney
 
#6
  Alt 18. Apr 2003, 23:54
Hallo,

die API-Funktion "sndPlaySound()" spielt leider tatsächlich nur Wave-Dateien ab:

Zitat von MSDN-Library:
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.
Die dort erwähnte Funktion "PlaySound" hingegen spielt grundsätzlich alle Formate ab, für die ein passender Codec installiert ist:

Zitat von MSDN-Library:
The sound specified must fit into available physical memory and be playable by an installed waveform-audio device driver.
Weitere Details: MSDN-Library :: PlaySound.
Daniel R. Wolf
mit Grüßen aus Hamburg
  Mit Zitat antworten Zitat