Skip to content

feat(libSceVoiceQoS): return not initialized error before initialization - #4183

Closed
jagrat04 wants to merge 1 commit into
boykopovar:mainfrom
jagrat04:feat-voiceqos-uninit-error
Closed

jagrat04 wants to merge 1 commit into
boykopovar:mainfrom
jagrat04:feat-voiceqos-uninit-error

Conversation

@jagrat04

Copy link
Copy Markdown
Contributor

What

In libSceVoiceQoS:

  • Check library initialization state in all endpoint, connection, and packet API functions (sceVoiceQoSCreateLocalEndpoint, sceVoiceQoSDeleteLocalEndpoint, sceVoiceQoSCreateRemoteEndpoint, sceVoiceQoSDeleteRemoteEndpoint, sceVoiceQoSConnect, sceVoiceQoSDisconnect, sceVoiceQoSSetLocalEndpointAttribute, sceVoiceQoSSetRemoteEndpointAttribute, sceVoiceQoSReadPacket, sceVoiceQoSWritePacket, sceVoiceQoSGetLocalEndpointAttribute).
  • When g_initialized is false, return SCE_VOICE_ERROR_LIBVOICEQOS_NOT_INIT (0x804E0901) before throwing NotImplemented_nid_no_patch.
  • Add test coverage across all functions in core/libs/tests/GuestVoiceQoS.cpp.
  • Update docs/dev/TechnicalDebt.md.

Tested

  • python tools/check_conventions.py --base origin/main passed with 0 violations.
  • Verified zero comments in C++ implementation files.

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebt
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: none
  • AI-assisted: yes

@github-actions

Copy link
Copy Markdown

Progress report (7a84b22 → 66224e4)

📈 System libraries: 86.79% (+0.32%, +11 implemented functions)

✅ 11 implemented
Library Name
libSceVoiceQoS sceVoiceQoSConnect
libSceVoiceQoS sceVoiceQoSCreateLocalEndpoint
libSceVoiceQoS sceVoiceQoSCreateRemoteEndpoint
libSceVoiceQoS sceVoiceQoSDeleteLocalEndpoint
libSceVoiceQoS sceVoiceQoSDeleteRemoteEndpoint
libSceVoiceQoS sceVoiceQoSDisconnect
libSceVoiceQoS sceVoiceQoSGetLocalEndpointAttribute
libSceVoiceQoS sceVoiceQoSReadPacket
libSceVoiceQoS sceVoiceQoSSetLocalEndpointAttribute
libSceVoiceQoS sceVoiceQoSSetRemoteEndpointAttribute
libSceVoiceQoS sceVoiceQoSWritePacket

@github-actions

github-actions Bot commented Oct 12, 2026 •

Copy link
Copy Markdown

Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in Depends on.

Pull request Conflicting files (lines on main) Same exports Same new files
#4101 docs/dev/TechnicalDebt.md L677-678
#4301 core/libs/prx/libSceVoiceQoS/Export.cpp L16-18, L38-40, L43-45, L48-50, L53-55, L58-60, L63-65, L73-75, L78-80, L83-85, L88-90, L93-95
core/libs/tests/GuestVoiceQoS.cpp L8
docs/dev/TechnicalDebt.md L678

@oneandonlydean

Copy link
Copy Markdown
Collaborator

Closing: 0x804E0901 before initialization was measured only for sceVoiceQoSEnd (#1407); for the eleven endpoint calls it is a guess, and no title is shown to call them before sceVoiceQoSInit. Reopen with a console measurement or a title that stops there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants