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

Abierto
#700 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
56/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
cmake, cpp, linux

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.
Lenguaje dominante
C++
Estrellas
214
Forks
7
Merge medio
7 h 53 min
PR fusionados (30 d)
280

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de simnJS/AnyPS5

Todos los issues de simnJS/AnyPS5

Issues similares

Más issues de C++

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.