libSceVoice: Call of Duty Black Ops II (PPSA34502) stops at sceVoiceGetPortAttr voice activity (attr 1001) since #9137 #9601

Closed
opened 2026-10-22 04:00:48 +00:00 by milescoviello · 3 comments
milescoviello commented 2026-10-22 04:00:48 +00:00 (Migrated from github.com)
Contributor

Imported from boykopovar/AnyPS5. Originally posted by milescoviello on 2026-10-22T04:00:48Z.


Call of Duty: Black Ops II (PPSA34502) stops 9 to 10 s after launch on current main (d9c99c9ba4). The output:

terminate called after throwing an instance of 'std::logic_error'
  what():  sceVoiceGetPortAttr: device attribute backend is not implemented

With a local print in sceVoiceGetPortAttr, the call is:

sceVoiceGetPortAttr port 2 type 0 attr 1001 size 1

That's the voice-activity attribute (1001, one byte) on an input device port (type 0). Before #9137, 241fa44094 ("restore resource layout and port validation"), that call returned success with a 0 byte. The game then reached its war-room menu here on 10-20, with #5499. Since then the call throws on purpose. The debt entry says the host has no device state or voice-activity processing, and that the constant-zero fallback was removed. GuestVoicePortAttr.cpp checks the throw.

I haven't changed anything, since this follows your decision in #9137. Some possible directions:

  1. Report the host's real state. There's no voice capture behind the input port (sceVoiceReadFromOPort returns 0 bytes, sceVoiceWriteToIPort is not implemented), so "no voice activity" is what that port has. This would need a definition of "device state" that you'd accept for a port without a capture device.
  2. Back the input device port with host capture (SDL, as libSceAudioIn already opens), plus voice-activity detection. That's real work, and it opens the user's microphone for the game's voice chat.
  3. Keep the throw, and BO2 stays stopped there until one of the above exists.

If you'd take one of these, say which and I'll write it with tests.

Setup: release libraries, Ubuntu 26.04.1, RTX 4070 Ti, NVIDIA 615.71.09.

AI-assisted: yes (Claude Code)

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5972802055 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/9601). Originally posted by [milescoviello](https://github.com/milescoviello) on 2026-10-22T04:00:48Z. --- Call of Duty: Black Ops II (PPSA34502) stops 9 to 10 s after launch on current `main` (d9c99c9ba4). The output: ``` terminate called after throwing an instance of 'std::logic_error' what(): sceVoiceGetPortAttr: device attribute backend is not implemented ``` With a local print in `sceVoiceGetPortAttr`, the call is: ``` sceVoiceGetPortAttr port 2 type 0 attr 1001 size 1 ``` That's the voice-activity attribute (1001, one byte) on an input device port (type 0). Before #9137, 241fa44094 ("restore resource layout and port validation"), that call returned success with a 0 byte. The game then reached its war-room menu here on 10-20, with #5499. Since then the call throws on purpose. The debt entry says the host has no device state or voice-activity processing, and that the constant-zero fallback was removed. `GuestVoicePortAttr.cpp` checks the throw. I haven't changed anything, since this follows your decision in #9137. Some possible directions: 1. **Report the host's real state.** There's no voice capture behind the input port (`sceVoiceReadFromOPort` returns 0 bytes, `sceVoiceWriteToIPort` is not implemented), so "no voice activity" is what that port has. This would need a definition of "device state" that you'd accept for a port without a capture device. 2. **Back the input device port with host capture** (SDL, as libSceAudioIn already opens), plus voice-activity detection. That's real work, and it opens the user's microphone for the game's voice chat. 3. **Keep the throw**, and BO2 stays stopped there until one of the above exists. If you'd take one of these, say which and I'll write it with tests. **Setup:** release libraries, Ubuntu 26.04.1, RTX 4070 Ti, NVIDIA 615.71.09. AI-assisted: yes (Claude Code)
MarcZX10 commented 2026-10-22 04:11:38 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-22T04:11:38Z.


This appears to be a distinct blocker from #9082: that PR adds sceVoiceInitHQ and sceVoiceVADSetVersion, but it does not implement sceVoiceGetPortAttr or establish a host input device/voice-activity state. Given the repository rule against inventing successful defaults, I agree the issue should remain an investigation until the host-side contract is chosen and supported by evidence. The three options in the report capture the tradeoff; if considering host capture, the design should explicitly document that it opens the user microphone and how the API behaves when capture is unavailable or disabled. The reported one-byte attribute (port 2, input type 0, attr 1001) and the prior zero result are useful evidence, but do not establish the console value by themselves. I found no matching open PR for sceVoiceGetPortAttr; #9082 is related only to initialization/VAD. I also did not find a PPSA34502 Game bring-up discussion in the category search.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6332493296 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/9601#issuecomment-6332493296). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-22T04:11:38Z. --- This appears to be a distinct blocker from #9082: that PR adds `sceVoiceInitHQ` and `sceVoiceVADSetVersion`, but it does not implement `sceVoiceGetPortAttr` or establish a host input device/voice-activity state. Given the repository rule against inventing successful defaults, I agree the issue should remain an investigation until the host-side contract is chosen and supported by evidence. The three options in the report capture the tradeoff; if considering host capture, the design should explicitly document that it opens the user microphone and how the API behaves when capture is unavailable or disabled. The reported one-byte attribute (port 2, input type 0, attr 1001) and the prior zero result are useful evidence, but do not establish the console value by themselves. I found no matching open PR for `sceVoiceGetPortAttr`; #9082 is related only to initialization/VAD. I also did not find a PPSA34502 Game bring-up discussion in the category search.
milescoviello commented 2026-10-22 09:14:27 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by milescoviello on 2026-10-22T09:14:27Z.


#9656 clears this stop in a title run: on main d6eafa54d0 the title aborts at 10 s here, and with #9656 it runs to the 300 s limit and reaches its Zombies mode. Details on #9656.

AI-assisted: yes (Claude Code)

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6337164790 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/9601#issuecomment-6337164790). Originally posted by [milescoviello](https://github.com/milescoviello) on 2026-10-22T09:14:27Z. --- #9656 clears this stop in a title run: on `main` `d6eafa54d0` the title aborts at 10 s here, and with #9656 it runs to the 300 s limit and reaches its Zombies mode. Details on #9656. AI-assisted: yes (Claude Code)
MarcZX10 commented 2026-10-22 13:19:58 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-22T13:19:58Z.


Thanks for adding the #9656 title run: it moves PPSA34502 past the reported stop and into the Zombies intro on the tested host. The PR also has independent Linux and Windows focused-test reports. This supports the host-model choice, but it does not establish the PS5 value for attribute 1001; #9137 deliberately removed the earlier zero fallback and recorded that gap. Since #9656 is still open and this behavior choice needs maintainers to resolve explicitly, I recommend keeping this issue open until that decision is recorded and the fix is merged.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6341775132 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/9601#issuecomment-6341775132). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-22T13:19:58Z. --- Thanks for adding the #9656 title run: it moves PPSA34502 past the reported stop and into the Zombies intro on the tested host. The PR also has independent Linux and Windows focused-test reports. This supports the host-model choice, but it does not establish the PS5 value for attribute 1001; #9137 deliberately removed the earlier zero fallback and recorded that gap. Since #9656 is still open and this behavior choice needs maintainers to resolve explicitly, I recommend keeping this issue open until that decision is recorded and the fix is merged.
Sign in to join this conversation.
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
boykopovar/AnyPS5#9601
No description provided.