Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Multimedia (https://www.delphipraxis.net/16-multimedia/)
-   -   PlaySound beept nur (https://www.delphipraxis.net/186738-playsound-beept-nur.html)

stalkingwolf 25. Sep 2015 08:44

PlaySound beept nur
 
Hallo,

ich wollte mit playsound einen Systemsound abspielen, aber egal was ich eintrage es beept nur.
In der Windowsystemsteuerung ist unter Sounds alles korrekt eingestellt.
In meinem Programm kommt nur der Standard Beep.

Code:
PlaySound('SYSTEMWELCOME', 0, SND_ALIAS);
Ich habe auch schon alle Varianten probiert. Mit pchar, SND_SYNC und SND_ASYNC.

Windows Version ist Windows 7 und Delphi ist XE4

TiGü 25. Sep 2015 09:13

AW: PlaySound beept nur
 
Delphi-Quellcode:
Winapi.MMSystem.PlaySound(PWideChar(SND_ALIAS_SYSTEMWELCOME), 0, SND_ALIAS_ID or SND_ASYNC);


Gibt bei mir aber auch nur den Sound für SND_ALIAS_SYSTEMDEFAULT.
Andere Werte, wie bspw. SND_ALIAS_SYSTEMASTERISK, spielen den passenden Sound ab.

EWeiss 25. Sep 2015 09:30

AW: PlaySound beept nur
 
Was spricht dagegen auch noch das Flag SND_NODEFAULT zu addieren?
Delphi-Quellcode:
Winapi.MMSystem.PlaySound(PWideChar(SND_ALIAS_SYSTEMWELCOME), 0, SND_ALIAS_ID or SND_ASYNC or SND_NODEFAULT);


gruss

stalkingwolf 25. Sep 2015 12:42

AW: PlaySound beept nur
 
mit SND_NODEFAULT kommt gar nichts.
Sonst wieder nur der Default Ton.

hathor 25. Sep 2015 13:15

AW: PlaySound beept nur
 
Gibt es das Verzeichnis MEDIA oder wo sind die *.wav-Files gespeichert?

EWeiss 25. Sep 2015 13:20

AW: PlaySound beept nur
 
Zitat:

Zitat von stalkingwolf (Beitrag 1316974)
mit SND_NODEFAULT kommt gar nichts.
Sonst wieder nur der Default Ton.

Seltsam bei mir geht alles..
Wie @hathor schon sagt prüf mal dein System.

gruss


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