Repository navigation
feat(libSceAudioIn): implement sceAudioInIsPadEmbeddedMic - #6101
Closed
fdfawef324 wants to merge 1 commit into
Closed
fdfawef324 wants to merge 1 commit into
fdfawef324 wants to merge 1 commit into
Conversation
sceAudioInIsPadEmbeddedMic threw NotImplemented, so a title that asks whether a port it just opened captures from the controller's embedded microphone stopped there. It now looks the handle up as sceAudioInGetSilentState, sceAudioInInput and sceAudioInClose do: a handle that names no open port returns AUDIO_IN_ERROR_INVALID_HANDLE (0x80260101). AnyPS5 never selects a controller's embedded microphone: every port opens the host's default SDL capture device, or none, so an open handle returns 0, also when that host device is a DualSense microphone. guest_audio_in_capture and guest_audio_in_no_device check 0 for an open port with and without a host device, and the invalid-handle error for handle 0, a negative handle, an out-of-range handle, an unused slot and a closed port. The debt entry records that the result is read from the name, that shadPS4 returns NOT_OPENED (0x80260109) for a closed port where KytyPS5 returns 0x80260101, and that neither result, nor the console's value for an embedded microphone, is verified on a console. With this, no AudioIn export is left without an implementation, so the index line on assumed AudioIn signatures now names only NpSessionSignaling. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
11 tasks done
Contributor
Author
|
Closing this myself to respect the queue policy in #4826: no title has been shown to stop here on AI-assisted: yes |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
sceAudioInIsPadEmbeddedMic(X+4jdIS75P0) is no longerNotImplemented. Onmain, a title that calls it stops there withsceAudioInIsPadEmbeddedMic not implemented. #2355 shows such a call: right aftersceAudioInOpenandsceAudioInGetSilentState, with the new handle inedi, and the 32-bit result is used.sceAudioInGetSilentState,sceAudioInInputandsceAudioInClosedo, under the same lock. A handle that names no open port (0, negative, above 8, a free slot or a closed port) returnsAUDIO_IN_ERROR_INVALID_HANDLE(0x80260101), the same error those calls return.Astro Bot imports it (PPSA21567, #357). Nobody has reported a stop on it there, so the Unblocks line says none.
The
Unknown function infoentry indocs/dev/debt/libSceAudioIn.mdchanges from "still throws" to the behaviour above, with what is not verified:0x80260101for a closed port as well; shadPS4 returns0x80260109(NOT_OPENED). This applies to every AudioIn call onmain, so this PR keeps0x80260101and does not change the others;With this, no AudioIn export is left without an implementation, so the
TechnicalDebt.mdindex line on assumed signatures now names only NpSessionSignaling, as 8ef51df did for PlayerInvitationDialog.No other open PR implements this function. The searches were
sceAudioInIsPadEmbeddedMic,IsPadEmbeddedMic,PadEmbeddedMic(all states) andlibSceAudioIn in:title;sceAudioInIsPadEmbeddedMicandPadEmbeddedMicwere searched again among open PRs right before opening this one.Test:
core/libs/tests/GuestAudioIn.cppguest_audio_in_capture: the port opened on the SDLdiskcapture device returns 0.guest_audio_in_no_device: the port opened withSDL_AUDIODRIVER=nonereturns 0. Handle 0, handle -1, handle 9, an unused slot and a closed port each return0x80260101.Tested
Windows Server 2025 (10.0.26100), WinLibs MinGW-w64 GCC 15.2.0, Ninja, Release,
BUILD_TESTING=ON, rebased onmain922abe6.main'sExport.cppand this test change:guest_audio_in_captureandguest_audio_in_no_deviceboth abort (0xc0000409) onterminate called after throwing an instance of 'std::runtime_error',what(): sceAudioInIsPadEmbeddedMic not implemented.Not tested: Linux, macOS, a console, and any title.
Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)Part of #2355
🤖 Generated with Claude Code