AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Zurück Delphi-PRAXiS Suchfunktion Ergebnis der Suchanfrage

Ergebnis der Suchanfrage


Datum des Suchindex: Heute, 20:02

Parameter dieser Suchanfrage:

Suche in Thema: Get/Set Master Volume Lautstärke?
Suche alle Beiträge, die von "PeterPanino" geschrieben wurden
• Suchmethode: "Suche nach allen Begriffen"
• Nach Datum (firstpost) sortiert
• Zeige Treffer als Beiträge
Zeige 10 von insges. 10 Treffern
Suche benötigte 0.000s

Es liegen Ergebnisse in folgenden Bereichen vor:

  • Forum: Multimedia

    AW: Get/Set Master Volume Lautstärke?

      Delphi
      by PeterPanino, 15. Okt 2023
    TForm1.FormKeyUp:
    TForm1.SetMasterVolumeMuteState: A
    TForm1.SetMasterVolumeMuteState: B
    TForm1.SetMasterVolumeMuteState: C
    TForm1.SetMasterVolumeMuteState: ELSE 80070057

    There must be a difference between our versions of Windows.
  • Forum: Multimedia

    AW: Get/Set Master Volume Lautstärke?

      Delphi
      by PeterPanino, 15. Okt 2023
    Catching the R value on ELSE:

    When calling SetMasterVolumeMuteState(True);

    I get these debug messages:

    TForm1.SetMasterVolumeMuteState: A
    TForm1.SetMasterVolumeMuteState: B
    TForm1.SetMasterVolumeMuteState: C
    TForm1.SetMasterVolumeMuteState: ELSE = -2147024809
  • Forum: Multimedia

    AW: Get/Set Master Volume Lautstärke?

      Delphi
      by PeterPanino, 15. Okt 2023
    Debugging it further:

    procedure TForm1.SetMasterVolumeMuteState(Muted: Boolean);
    var
    MuteStatus: Boolean;
    FAudioEndpointVolume: AudioEndpoint.IAudioEndpointVolume; // from the Andreas Rejbrand unit
    FDeviceEnumerator: IMMDeviceEnumerator;
    FMMDevice: IMMDevice;
    begin
    CodeSite.Send('TForm1.SetMasterVolumeMuteState: A');
  • Forum: Multimedia

    AW: Get/Set Master Volume Lautstärke?

      Delphi
      by PeterPanino, 15. Okt 2023
    Isn't the logic inverted here? (if not Succeeded -> SetMute OK)

    Anyway - when calling with a False parameter, checking the exact HRESULT it returns FALSE here:

    var R: System.HResult := FAudioEndpointVolume.SetMute(Muted, nil);
    case R of
    S_OK: CodeSite.Send('TForm1.SetMasterVolumeMuteState: OK'); // successful operation with a return value of True
    ...
  • Forum: Multimedia

    AW: Get/Set Master Volume Lautstärke?

      Delphi
      by PeterPanino, 14. Okt 2023
    Diesem Irrtum bin ich vorher auch verfallen: Das betrifft nicht den Wert von MASTER VOLUME, sondern den Volume-Wert des eigenen Programms.

    Kannst du in Settings -> App volume and device preferences genau beobachten.

    Danke jedenfalls für deinen Beitrag! Much appreciated!
  • Forum: Multimedia

    AW: Get/Set Master Volume Lautstärke?

      Delphi
      by PeterPanino, 14. Okt 2023
    In fact, that's what I am planning: The user should be able to simply click a button on my app to quickly mute or unmute his master volume without having to awkwardly call the Windows settings each time. With my apps, I always strive to make the operation of Windows easier, which is often unnecessarily complicated on many advanced settings. One usage example is: quickly switching off the sound...
  • Forum: Multimedia

    AW: Get/Set Master Volume Lautstärke?

      Delphi
      by PeterPanino, 14. Okt 2023
    Ich habe jetzt (mit der AudioEndpoint Unit von Andreas Rejbrand) selbst eine funktionierende Methode gefunden, um den Master Volume Level einzustellen:

    procedure TForm1.SetMasterVolumeLevelScalar(Level: Single);
    var
    MuteStatus: Boolean;
    FAudioEndpointVolume: AudioEndpoint.IAudioEndpointVolume; // from the Andreas Rejbrand unit
    begin
    //try
    if not...
  • Forum: Multimedia

    AW: Get/Set Master Volume Lautstärke?

      Delphi
      by PeterPanino, 14. Okt 2023
    Ich habe jetzt endlich eine funktionierende Lösung gefunden, um den Wert von Master Volume (Mute/Unmute, Volume Percent) AUSZULESEN:

    Es ist die Lösung von Andreas Rejbrand auf Stack Overflow:

    https://stackoverflow.com/questions/66630233/delphi-sound-change-notification-mute-unmute

    Aber leider weiß ich jetzt noch immer nicht, wie ich den Wert von Master Volume SETZEN kann. Weiß jemand...
  • Forum: Multimedia

    AW: Get/Set Master Volume Lautstärke?

      Delphi
      by PeterPanino, 14. Okt 2023
    Wenn ich in den Windows Settings den Mixer-Kanal meiner App anzeige, so steht dieser auf 100:



    Wenn ich dann die JEDI-Komponente TJvSoundControl verwende, kann ich Wave.Volume auf einen Wert einstellen:

    procedure TForm1.FormClick(Sender: TObject);
    begin
    // TJvSoundControl:
    JvSoundControl1.Wave.Volume := 50;
  • Forum: Multimedia

    Get/Set Master Volume Lautstärke?

      Delphi
      by PeterPanino, 14. Okt 2023
    Hallo! Wie kann man in Delphi den Wert der Master Volume Lautstärke erhalten und setzen?

    Mein System: Delphi 11 in Windows 10


URL zu dieser Suchanfrage:

https://www.delphipraxis.net/dp_search.php?do=usersearch&search_username=PeterPanino&search_exact_username=1&search_sortby=dateline&search_resulttype=post&search_matchmode=0&searchthreadid=213884
Impressum · AGB · Datenschutz · Nach oben
Alle Zeitangaben in WEZ +1. Es ist jetzt 20:15 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