[FEATURE] macOS: Implement Audio Capturing using the newer CoreAudio ProcessTap API
还没有人认领这个 Issue。
评估
- 难度
- 5/5
- 预计耗时
- 一周以上
- 新手友好度
- 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 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
projectM-visualizer/frontend-sdl-cpp 的其他 Issue
-
enhancement
难度 5/5 一周以上 新手友好度 25/100
projectM-visualizer/frontend-sdl-cpp#138 · 1 个 reaction ·
-
难度 5/5 一周以上 新手友好度 30/100
projectM-visualizer/frontend-sdl-cpp#134 · 4 条评论 ·
-
难度 5/5 一周以上 新手友好度 35/100
-
enhancement
难度 4/5 3-5 天 新手友好度 35/100
projectM-visualizer/frontend-sdl-cpp#120 · 1 条评论 ·
-
enhancement
难度 5/5 一周以上 新手友好度 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 ·