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

Aperta
#700 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
56/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
cmake, cpp, linux

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.
Lingua principale
C++
Stelle
214
Fork
7
Merge medio
7h 53m
PR unite (30g)
280

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di simnJS/AnyPS5

Tutte le issue di simnJS/AnyPS5

Issue simili

Altre issue su C++

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.