[FEATURE] macOS: Implement Audio Capturing using the newer CoreAudio ProcessTap API
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 28/100
- issue の種類
- 機能追加
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- cpp, macos
調査の方向性
Start with the SDL2 CoreAudio wrapper and compare its capture flow with the AudioCap Process Tap setup and Apple's Core Audio Taps documentation. The work is done when macOS users can choose external input or a process, persist the selected process, and receive a fallback or message when it is unavailable.
索引モデルが issue の本文から書いたものです。
説明
Is Your Enhancement Related to a Problem?
Currently, the projectMSDL application can only capture audio from external sources like microphones and line-in. It uses the SDL2 CoreAudio wrapper, which only provides very basic access to macOS audio APIs.
Your Suggested Enhancement
Since macOS 14.4, Apple introduces a new API in CoreAudio called "Process Taps", which enables any application to record audio from a specific application once the user allows the application to do so. The API is poorly documented, but there is a GitHub project demonstrating how to use it.
Due to how this API works, it'll require some macOS-specific changes in the UI to select the process to capture from instead of an audio device. Capturing from external sources using the standard CoreAudio API should still be possible though, so this can be implemented as a choice, e.g. a "Capture Source" dropdown or radio button with "External Input" and "Process" choices.
If a process is chosen by the user, the selected process name or executable path should be stored in the configuration file, so the same application to record from can be selected again on the next launch (as the Process Tap API uses the process ID). There should be either a fallback or user message if the selected process isn't available (either on startup or when terminated) to avoid confusion if audio capture suddenly stops working.
Alternative Solutions
No response
Additional Context
(Short) introduction to Taps in Apple's developer docs: https://developer.apple.com/documentation/coreaudio/capturing-system-audio-with-core-audio-taps?language=objc
- 主要言語
- C++
- スター
- 120
- フォーク
- 65
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
projectM-visualizer/frontend-sdl-cpp のほかの issue
-
enhancement
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
projectM-visualizer/frontend-sdl-cpp#138 · リアクション 1 件 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 30/100
projectM-visualizer/frontend-sdl-cpp#134 · コメント 4 件 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
-
enhancement
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
projectM-visualizer/frontend-sdl-cpp#120 · コメント 1 件 ·
-
enhancement
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
projectM-visualizer/frontend-sdl-cpp#118 · コメント 2 件 ·
projectM-visualizer/frontend-sdl-cpp の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 83/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
-
[BUG] Clipboard History: Buffer over-read in WideCharToMultiByte on double-click paste対応中かも @softmgr が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
notepad-plus-plus/notepad-plus-plus#18519 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
justcallmekoko/ESP32Marauder#1635 ·
メンテナーはふだん 1 日以内に返信
-
3.7.6-dev commit 80481ea - files not centered when resolution differs and zoom = "pixel-to-pixel"オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
grizzlypeak3d/DJV#931 ·