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

オープン
#700 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
56/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
cmake, cpp, linux

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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.
主要言語
C++
スター
214
フォーク
7
平均マージ
7時間 53分
マージ済み PR(30日)
280

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

simnJS/AnyPS5 のほかの issue

simnJS/AnyPS5 の issue をすべて見る

似ている issue

C++ の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。