[PR #15333] [MERGED] Avoid recreating the bell MediaPlayer every time #30588

Open
opened 2026-01-31 09:41:43 +00:00 by claunia · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/microsoft/terminal/pull/15333
Author: @lhecker
Created: 5/11/2023
Status: Merged
Merged: 5/12/2023
Merged by: @microsoft-github-policy-service[bot]

Base: mainHead: dev/lhecker/cheaper-media-player


📝 Commits (1)

  • db10d9f Avoid recreating the bell MediaPlayer every time

📊 Changes

2 files changed (+7 additions, -32 deletions)

View changed files

📝 src/cascadia/TerminalApp/Pane.cpp (+6 -31)
📝 src/cascadia/TerminalApp/Pane.h (+1 -1)

📄 Description

We don't need to recreate the MediaPlayer to avoid the influence of
media keys if we simply opt out of media key controls.

Validation Steps Performed

  • Set a random .wav as the bell sound
  • Bell is audible
  • Media keys have no effect while the sound plays

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/microsoft/terminal/pull/15333 **Author:** [@lhecker](https://github.com/lhecker) **Created:** 5/11/2023 **Status:** ✅ Merged **Merged:** 5/12/2023 **Merged by:** [@microsoft-github-policy-service[bot]](https://github.com/apps/microsoft-github-policy-service) **Base:** `main` ← **Head:** `dev/lhecker/cheaper-media-player` --- ### 📝 Commits (1) - [`db10d9f`](https://github.com/microsoft/terminal/commit/db10d9febdbb1203bda0397dcc524c559a6750f4) Avoid recreating the bell MediaPlayer every time ### 📊 Changes **2 files changed** (+7 additions, -32 deletions) <details> <summary>View changed files</summary> 📝 `src/cascadia/TerminalApp/Pane.cpp` (+6 -31) 📝 `src/cascadia/TerminalApp/Pane.h` (+1 -1) </details> ### 📄 Description We don't need to recreate the `MediaPlayer` to avoid the influence of media keys if we simply opt out of media key controls. ## Validation Steps Performed * Set a random .wav as the bell sound * Bell is audible ✅ * Media keys have no effect while the sound plays ✅ --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
claunia added the pull-request label 2026-01-31 09:41:43 +00:00
Sign in to join this conversation.
No Label pull-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#30588