Repository navigation
libs: sceIoctl's status poll, sceSifInitCmd, sceSifSetDChain, sceIpuInit; whole stream reads (opt-in) - #150
Merged
Merged
Conversation
This was referenced Nov 26, 2026
…nit; whole stream reads (opt-in) What Amplitude_Recomp answered in its port, generic SDK behaviour: - sceIoctl: request 1, the status a file opened with O_NOWAIT is polled with, is "done" (*arg = 0): the native sceOpen / sceRead have finished as they return. Any other request: -1. - sceSifInitCmd, sceSifSetDChain, isceSifSetDChain: nothing to set up or arm (Onimusha_Recomp answered sceSifSetDChain the same way in its port). - sceIpuInit: no IPU to reset. - CdState::wholeStreamReads (off by default): a sceCdStRead that does not wait brings all its sectors or none, as a console's drive fills the stream ring a bank at a time. Amplitude's movie player resumes its demux at buffer + 0x4000 - bytes left and skipped a sector after a short read. - texture.h: Texture::rgba carries the GS's alpha (0x80 opaque); the comment said 255. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
boubou666
force-pushed
the
amp/sdk-answers
branch
from
November 27, 2026 09:24
a84f561 to
7b3f7df
Compare
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 Amplitude_Recomp answered in its port, as generic SDK behaviour in the engine:
O_NOWAITis polled with, is "done" (*arg = 0): the nativesceOpen/sceReadhave finished as they return. Any other request: -1.sceSifSetDChainthe same way in its port).sceCdStReadthat does not wait brings all its sectors or none, as a console's drive fills the stream ring a bank at a time. Amplitude's movie player resumes its demux atbuffer + 0x4000 - bytes leftand skipped a sector after a short read (its sound packet lost, the samples after it a byte off: white noise).Texture::rgbacarries the GS's alpha (0x80 opaque; the renderer scales it). The comment said 255, and Amplitude's and Dark Cloud's decoders doubled translucent texels because of it.Tested with Amplitude_Recomp (its overrides removed, the option on): the intro's sound identical, the menus and a song as before.
🤖 Generated with Claude Code