[FEATURE] macOS: Implement Audio Capturing using the newer CoreAudio ProcessTap API
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 28/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- cpp, macos
- Lĩnh vực
- audio-video-rtc, desktop
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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
- Ngôn ngữ chính
- C++
- Star
- 120
- Fork
- 65
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của projectM-visualizer/frontend-sdl-cpp
-
enhancement
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
projectM-visualizer/frontend-sdl-cpp#138 · 1 reaction ·
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 30/100
projectM-visualizer/frontend-sdl-cpp#134 · 4 bình luận ·
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
-
enhancement
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
projectM-visualizer/frontend-sdl-cpp#120 · 1 bình luận ·
-
enhancement
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
projectM-visualizer/frontend-sdl-cpp#118 · 2 bình luận ·
Tất cả issue của projectM-visualizer/frontend-sdl-cpp
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 83/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
-
[BUG] Clipboard History: Buffer over-read in WideCharToMultiByte on double-click pasteCó thể đã có người làm @softmgr đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
notepad-plus-plus/notepad-plus-plus#18519 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
justcallmekoko/ESP32Marauder#1635 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
3.7.6-dev commit 80481ea - files not centered when resolution differs and zoom = "pixel-to-pixel"Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
grizzlypeak3d/DJV#931 ·