it honks
This commit is contained in:
parent
02ac246807
commit
be11388a04
|
@ -1133,6 +1133,13 @@ void Pane::_ControlWarningBellHandler(const winrt::Windows::Foundation::IInspect
|
||||||
// Audible is set, play the sound
|
// Audible is set, play the sound
|
||||||
const auto soundAlias = reinterpret_cast<LPCTSTR>(SND_ALIAS_SYSTEMHAND);
|
const auto soundAlias = reinterpret_cast<LPCTSTR>(SND_ALIAS_SYSTEMHAND);
|
||||||
PlaySound(soundAlias, NULL, SND_ALIAS_ID | SND_ASYNC | SND_SENTRY);
|
PlaySound(soundAlias, NULL, SND_ALIAS_ID | SND_ASYNC | SND_SENTRY);
|
||||||
|
|
||||||
|
auto uri{ winrt::Windows::Foundation::Uri(L"C:\\Users\\migrie\\Downloads\\memes\\honks\\Honk1.mp3") };
|
||||||
|
auto source{ winrt::Windows::Media::Core::MediaSource::CreateFromUri(uri) };
|
||||||
|
|
||||||
|
auto item{ winrt::Windows::Media::Playback::MediaPlaybackItem(source) };
|
||||||
|
p.Source(item);
|
||||||
|
p.Play();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (WI_IsFlagSet(_profile.BellStyle(), winrt::Microsoft::Terminal::Settings::Model::BellStyle::Window))
|
if (WI_IsFlagSet(_profile.BellStyle(), winrt::Microsoft::Terminal::Settings::Model::BellStyle::Window))
|
||||||
|
|
|
@ -230,6 +230,8 @@ private:
|
||||||
|
|
||||||
bool _zoomed{ false };
|
bool _zoomed{ false };
|
||||||
|
|
||||||
|
winrt::Windows::Media::Playback::MediaPlayer p{};
|
||||||
|
|
||||||
bool _IsLeaf() const noexcept;
|
bool _IsLeaf() const noexcept;
|
||||||
bool _HasFocusedChild() const noexcept;
|
bool _HasFocusedChild() const noexcept;
|
||||||
void _SetupChildCloseHandlers();
|
void _SetupChildCloseHandlers();
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// Copyright (c) Microsoft Corporation.
|
// Copyright (c) Microsoft Corporation.
|
||||||
// Licensed under the MIT license.
|
// Licensed under the MIT license.
|
||||||
//
|
//
|
||||||
// pch.h
|
// pch.h
|
||||||
|
@ -45,6 +45,9 @@
|
||||||
#include <winrt/Windows.UI.Xaml.Markup.h>
|
#include <winrt/Windows.UI.Xaml.Markup.h>
|
||||||
#include <winrt/Windows.UI.Xaml.Media.h>
|
#include <winrt/Windows.UI.Xaml.Media.h>
|
||||||
#include <winrt/Windows.UI.Xaml.Media.Animation.h>
|
#include <winrt/Windows.UI.Xaml.Media.Animation.h>
|
||||||
|
#include <winrt/Windows.Media.h>
|
||||||
|
#include <winrt/Windows.Media.Core.h>
|
||||||
|
#include <winrt/Windows.Media.Playback.h>
|
||||||
|
|
||||||
#include <winrt/Microsoft.Toolkit.Win32.UI.XamlHost.h>
|
#include <winrt/Microsoft.Toolkit.Win32.UI.XamlHost.h>
|
||||||
#include <winrt/Microsoft.UI.Xaml.Controls.h>
|
#include <winrt/Microsoft.UI.Xaml.Controls.h>
|
||||||
|
|
Loading…
Reference in a new issue