Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Try to improve sceMp3Decode #13951

Closed
wants to merge 2 commits into from
Closed

Conversation

sum2012
Copy link
Collaborator

@sum2012 sum2012 commented Jan 20, 2021

From Hanayaka Nari Wa ga Ichizoku JPCSPTrace log https://gist.github.com/sum2012/e2d513c55342c40f5e12

But don't help the game #5213

From Hanayaka Nari Wa ga Ichizoku  JPCSPTrace log
@hrydgard hrydgard added this to the v1.12.0 milestone Jan 20, 2021
@hrydgard hrydgard added the Audio label Jan 20, 2021
// decode data successfully, delay thread
return hleDelayResult(pcmBytes, "mp3 decode", mp3DecodeDelay);
}
return pcmBytes;
ERROR_LOG(ME, "%d = sceMp3Decode(%08x,%08x)", 0x807f00fd, mp3, outPcmPtr);
return ERROR_AVCODEC_INVALID_DATA;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The only negative case right now would be invalid address:

This probably won't change anything. If we're seeing the JpcspTrace return an error it may mean we need better validation.

-[Unknown]

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

JPCSP also don't have have this error code in sceMp3Decode.
I should wait it first.

@hrydgard hrydgard modified the milestones: v1.12.0, Future-Prio Aug 29, 2021
@ghost
Copy link

ghost commented Jan 27, 2022

How about this now?

@unknownbrackets
Copy link
Collaborator

I think the issue was fixed by #13981, and the code currently incorporates a similar change. Thanks for helping getting this fixed - I'm gonna close this PR.

-[Unknown]

@unknownbrackets unknownbrackets removed this from the Future-Prio milestone Oct 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants