Call for contributions: audio (AudioOut, AudioIn, Ngs2 and codecs)

Đang mở
#700 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
56/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
cmake, cpp, linux
Lĩnh vực
audio-video-rtc, backend

Hướng nghiên cứu

Choose one audio topic before starting; the issue asks contributors to comment first to avoid duplicate work. For the three inert AudioOut functions, start in core/libs/prx/libSceAudioOut/ and read the closest tests in core/libs/prx/libSceAudioOut/tests/, such as HostGain.cpp. Add a test for the selected behavior and run it with ctest --test-dir build -R <name> --output-on-failure; done means the export matches the documented console behavior for reachable cases, with no silent success where the console fails.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

area: audio enhancement help wanted medium

Call for contributions: audio

Why

Sound is where a missing function is the most audible: a title that cannot open an input port, query a device or set a mix level may refuse to start. Counted from the code: libSceAudioOut has 78 implemented exports, 141 that still call NotImplemented_nid_no_patch and 3 that return success without effect (sceAudioOutGetInfo, sceAudioOutGetInfoOpenNum, sceAudioOutSetMainOutput). libSceAudioIn has 19 implemented and 30 unimplemented (their signatures are assumed, see docs/dev/TechnicalDebt.md, "Unknown function info"). libSceNgs2.native has 8 unimplemented, libSceAt9Enc 5.

What to pick
  • AudioIn: sceAudioInCountPorts, sceAudioInInputs, sceAudioInSetMode, the Vmic* family and the connection setters (core/libs/prx/libSceAudioIn/). Check the assumed signatures against public documentation first.
  • AudioOut: the three inert functions above, then the named unimplemented exports (core/libs/prx/libSceAudioOut/).
  • Ngs2 and codecs: the 8 unimplemented Ngs2 exports and the AT9 encoder (libSceNgs2.native, libSceAt9Enc).
  • Host side: device selection and volume (HostVolume, HostGain, OutputDevice tests show the pattern), so a title gets a sensible default on Linux (PipeWire, Pulse) and on Windows.
Expected result

Exports that behave like the console for the cases a title can reach (port counts, modes, handle lifetime, error codes), each with a test, and no silent success where the console fails.

How to test without our games

The audio libraries have host-independent layers with tests that need no sound device: core/libs/prx/libSceAudioOut/tests/ (33 files, for example AudioOutPortLocks.cpp, AudioOutResampling.cpp, HostGain.cpp). Copy the closest one, register it in the library's CMakeLists.txt, and run ctest --test-dir build -R <name> --output-on-failure. For a listening check, any test tone through sceAudioOut on your own machine is enough; say what you heard in the pull request.

Difficulty

Medium; good first issue for the three inert AudioOut functions and the AudioIn getters.

Who to ask

Ask in this issue; the maintainers read every comment.

Rules that apply to every call
  • Comment on the issue before you start, so two people do not do the same work. One topic per pull request, against AnyKyty.
  • Conventional Commits (fix(libkernel): ..., feat(libScePad): ..., test(...), docs: ...). No comments in code. Nothing specific to one title: no title IDs, no data taken from a game, no per-title branches.
  • Every export either does exactly what it should or throws: an unimplemented export calls NotImplemented_nid_no_patch(__func__). A silent stub is allowed only when it unblocks a title and only affects the UI; list it under "Silent stubs" in the library's file in docs/dev/debt/ through a fragment (docs/dev/debt/changes/<branch>.md, see docs/dev/TechnicalDebt.md).
  • Say where a behaviour comes from: public SDK headers and documentation, a published reverse-engineering write-up, or your own analysis of your own console's system modules. Do not post or attach firmware files, system modules or game files.
  • Each test finishes in 30 s on the CI runners. python3 tools/check_conventions.py --base origin/AnyKyty must pass before you push.
  • Build and test: docs/dev/START_HERE.md and docs/dev/BUILD.md. CI runs the library tests on GitHub's runners (no GPU, no game) on Linux and Windows.
Ngôn ngữ chính
C++
Star
214
Fork
7
Merge trung bình
7 giờ 53 phút
Pull request đã merge (30 ngày)
280

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của simnJS/AnyPS5

Tất cả issue của simnJS/AnyPS5

Issue tương tự

Thêm issue về C++

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.