MCPcopy Create free account
hub / github.com/TraderOracle/ATAS / PlaySoundAsync

Method PlaySoundAsync

ATASVolImb.cs:574–589  ·  view source on GitHub ↗
(String SoundFilePath)

Source from the content-addressed store, hash-verified

572 }
573
574 private async Task PlaySoundAsync(String SoundFilePath)
575 {
576 SoundPlayer _soundPlayer = new();
577 try
578 {
579 if (File.Exists(SoundFilePath))
580 {
581 _soundPlayer.SoundLocation = SoundFilePath;
582 _soundPlayer.Play();
583 }
584 }
585 catch (Exception ex)
586 {
587 //
588 }
589 }
590
591 #endregion
592

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected