Questions about sceAudioRoutingSetMode and sceAudioRoutingGetMode

Abierto Apto para principiantes
#388 1 comentario 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
2/5
Tiempo estimado
1-3 horas
Aptitud para principiantes
70/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
c

Línea de trabajo

Comienza con sceAudioRouting_driver.S y compara sus NIDs y flags exportados con las funciones de impose_0.2g.prx. Confirma si los NIDs del driver son 0x18B6F449 y 0x931ABEF5, y determina si deberían representarse cuatro modos o estados de routing; el issue estará terminado cuando se hayan establecido las definiciones correctas del SDK y los modos compatibles.

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

Descripción

Hi,

I've noticed that the NIDs provided by the SDK for sceAudioRoutingSetMode and sceAudioRoutingGetMode are the same for both sceAudioRouting and sceAudioRouting_driver.
Looking at the exports found in impose_0.2g.prx, I've seen that it exports the same functions (same offset within the PRX) but with different NIDs and flags. The NIDs currently in the SDK match those of sceAudioRouting (the user-mode library), not sceAudioRouting_driver.

I'm writing a kernel-mode PRX plugin and need to call the driver versions of these functions. Using the NIDs provided by the SDK doesn't work, but forcing them to:
sceAudioRoutingSetMode → 0x18B6F449
sceAudioRoutingGetMode → 0x931ABEF5
solves the problem.

Also, the possible routing modes/states appear to be 4, not 2.

I'm opening this issue before submitting a PR, to ask whether I should just fix the NIDs in sceAudioRouting_driver.S, or if there's something else going on that I'm missing.

Thanks!

Lenguaje dominante
C
Estrellas
1.2k
Forks
190
Merge medio
1 d 18 h
PR fusionados (30 d)
8

Preparar el entorno

  • Incluye un Dockerfile o un archivo de Docker Compose
  • Sin plantilla de pull request
  • Sin guía de contribución

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 pspdev/pspsdk

Todos los issues de pspdev/pspsdk

Issues similares

Más issues de C

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.