Questions about sceAudioRoutingSetMode and sceAudioRoutingGetMode
Nobody has claimed this yet.
- Dominant language
- C
- Stars
- 1.2k
- Forks
- 183
- Avg merge
- 1d 8h
- Merged PRs (30d)
- 5
Description
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!
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with sceAudioRouting_driver.S and compare its exported NIDs and flags with the functions in impose_0.2g.prx. Confirm whether the driver NIDs are 0x18B6F449 and 0x931ABEF5, and determine whether four routing modes or states should be represented; the issue is done when the correct SDK definitions and supported modes are established.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c
- Domain
- audio-video-rtc
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 70/100