Commit Graph
5169 Commits
Author SHA1 Message Date
Unknown W. Brackets 2a9e674045 Reset "no audio data" flag when adding more data.
It might have audio data.  Although, probably, we should detect this when
sceMpegGetAtracAu() is called.
2014-01-10 16:15:03 -08:00
Unknown W. Brackets 7287da38cb Fix buffer queue when filled in one shot.
It would mod by the size and think it was empty, even though it had plenty
of data.  This could happen if a game creates a ringbuffer with 512
packets and then does a single put operation with 512 packets.

Such behavior is rare though, since it will cause lag in starting the
video.
2014-01-10 16:13:34 -08:00
Unknown W. Brackets 4a4f89eeac Correctly read the epmap from the right place. 2014-01-10 12:57:40 -08:00
raven02 23704e9940 Return PSP_ERROR_MPEG_NO_DATA when audio end reach 2014-01-10 23:41:32 +08:00
raven02 c2e6f77a2f Check EPMap and return ERROR_PSMF_NOT_FOUND if empty 2014-01-10 19:15:35 +08:00
Unknown W. Brackets 1a38f6fa7d Properly remove terminated thread from ready queue.
If we change the priority first, we'll remove from the wrong priority
level, oops.  Gotta change afterward.

Should improve Darkstalkers Chronicle: The Chaos Tower.
2014-01-09 22:05:04 -08:00
raven02 898964e415 Typo fix 2014-01-09 22:34:02 +08:00
raven02 451797af92 Add ERROR_LOG for invalid id and timestamps 2014-01-09 21:37:01 +08:00
raven02 9ac8c63d96 Make more sense to use return as ERROR_PSMF_INVALID_ID 2014-01-09 21:30:49 +08:00
Henrik Rydgård 51484e48a9 Merge pull request #5043 from thedax/win32IgnoreWindowsKeyOption
Win32: Add an option to disable the Windows key when the emulator is the active window.
2014-01-08 10:46:47 -08:00
Henrik Rydgård c176d09ba6 Fix a few range checks in scePsmf. See #5051 2014-01-08 14:20:20 +01:00
Henrik Rydgård a113abd0d6 Merge pull request #5040 from zack-vii/NextSlotKey
"Next Slot" control mapping
2014-01-08 01:39:38 -08:00
Unknown W. Brackets 079d770ce2 Revert the gp struct member in mpegs for now.
Unlikely to be used, even though seen in tests, and could be
causing #5045 (just a guess.)
2014-01-08 00:07:25 -08:00
Unknown W. Brackets d09575f25e When loading a savestate with more ram, realloc.
Also, I'm not sure the extra ram is being handled correctly, I think it's
not meant to be exposed to games except homebrew, not sure of the exact
method...
2014-01-08 00:06:27 -08:00
The Dax 9d2868b7ce Win32: Add option to disable the Windows key. 2014-01-07 16:02:00 -05:00
zack-vii 26fbb4c32c "Next Slot" control mapping
-added "Next Slot" to control mapping menu
-added VIRTKEY_NEXT_SLOT -> incremented VIRTKEY_TOGGLE_FULLSCREEN
-added SaveState::NextSlot(); as replacement for code in
WndMainWindow
-added entry in EmuScreen using SaveState::NextSlot();
2014-01-07 15:56:04 +01:00
Henrik Rydgard eea5b07e1a Prevent function replacer from replacing asinf and acosf, they seem to have colliding hashes in some games 2014-01-07 12:03:59 +01:00
Henrik Rydgård 9f4feafe10 Merge pull request #5027 from unknownbrackets/mpeg-minor
Correct some basic mpeg functionality to match tests
2014-01-06 01:20:39 -08:00
pal1000 e7672655d3 Fix warning in MIPS/MIPSAnalyst.cpp 2014-01-06 10:48:52 +02:00
Unknown W. Brackets 40745e727c Correct errors in sceMpegRingbufferAvailableSize(). 2014-01-05 23:12:16 -08:00
Unknown W. Brackets a896877449 Fix mpeg struct header. 2014-01-05 23:03:17 -08:00
Unknown W. Brackets e16602641c Improve errors in sceMpegRingbufferConstruct().
And also make Destruct() not actually null out the ringbuffer, per tests.
2014-01-05 22:34:11 -08:00
Henrik Rydgård cb28d332d3 Merge pull request #5021 from unknownbrackets/mbx-fix
Remove weird 991 mbx check (fixes #2927)
2014-01-05 08:14:09 -08:00
Unknown W. Brackets 116f86a8e8 Remove weird 991 mbx check (fixes #2927.) 2014-01-05 08:10:36 -08:00
raven02 1e3ec469fd Typo fix 2014-01-05 08:46:50 +08:00
Henrik Rydgård 4d477f0076 Merge pull request #4997 from raven02/patch-4
sceMpeg: Add all missing invalid memory check and cleanup format
2014-01-04 07:59:52 -08:00
Jeferson Rodrigues da Silva 4284290463 Fix for not updating local port information after bind in PtpOpen 2014-01-04 12:57:08 -02:00
raven02 54d97824e0 Apply hleDelayResult to sceMpegAvcCsc 2014-01-04 22:47:34 +08:00
Henrik Rydgard ddfdeb2222 VAGADPCM: no need to check end_ for every sample, it's only modified in DecodeBlock (and Start). 2014-01-04 11:01:44 +01:00
Henrik Rydgård 7ae7807658 Merge pull request #5004 from unknownbrackets/debugger
Don't hashmap functions smaller than 16 bytes
2014-01-04 01:52:02 -08:00
Unknown W. Brackets 1abb001e7f Don't hashmap functions smaller than 16 bytes.
Otherwise, small stub funcs "replicate" annoyingly.
2014-01-04 01:36:36 -08:00
Unknown W. Brackets 936f34a6b7 Check the audio buffer size just in case.
This way we definitely won't overfill it.
2014-01-04 01:25:42 -08:00
Unknown W. Brackets f095ac656b Don't completely fill the psmf ringbuffer at once.
It takes more time (slowing the start of the video), and gets us closer to
overflowing buffers and stuff.
2014-01-04 01:23:44 -08:00
raven02 b28f224fe2 sceMpeg: Add all missing invalid memory check and cleanup format 2014-01-04 16:55:20 +08:00
Henrik Rydgard 0de71f27cb Optimize the VAGADPCM decoder. 2014-01-04 01:59:20 +01:00
raven02 14e79f8151 Lowering the log level of sceNET 2014-01-04 02:32:59 +08:00
Henrik Rydgard 9bde25dfa9 Moving the lang mapping to Config clears up some obcure file-to-file build dependency.
Should fix the build.
2014-01-03 19:04:43 +01:00
Henrik Rydgard 03735e297b No reason for langValuesMapping to be a member variable in Config. 2014-01-03 18:50:06 +01:00
Henrik Rydgård 4d4fb98692 Merge pull request #4993 from unknownbrackets/mpeg-minor
Set the audio/video streams per sceMpegGet*Au()
2014-01-03 09:41:12 -08:00
Unknown W. Brackets 4e929764c8 Set the audio/video streams per sceMpegGet*Au().
This fixes #2226, thanks to @raven02 for finding the issue.  Could also
help e.g. Xyanide: Resurrection and a few other games.

The video codec change path is not super well tested, because I couldn't
find a game that triggered it, but it should work.
2014-01-03 09:29:37 -08:00
ufdada f9c1cefb12 wrong camelcase 2014-01-03 14:47:33 +01:00
ufdada f4c658881a Also set the PSP-internal Language if possible on first-run 2014-01-03 14:32:33 +01:00
Henrik Rydgård 9281fccacd Merge pull request #4939 from unknownbrackets/texcache
Add two options to adjust the texture cache
2014-01-02 08:32:59 -08:00
sum2012 94200b2df8 typo 2014-01-02 21:46:51 +08:00
sum2012 d0be3a38a9 Wrap some sceHprm
and remove same sceHprmPeekCurrentKey
2014-01-02 21:43:19 +08:00
Unknown W. Brackets 82a7680bab Remove the 5 packet min for openContext.
Should be safer, and with retrying, it's no longer necessary.
2014-01-01 21:00:29 -08:00
Unknown W. Brackets 2c38805791 Retry opening the context if it fails at first.
This fixes #4550, the hang on the crash video in FF4.
2014-01-01 20:47:10 -08:00
Unknown W. Brackets c1dcebce07 Fix savestates when videos are playing. 2014-01-01 20:44:51 -08:00
Unknown W. Brackets 73121082c5 Default off the texture cache options.
They cause noticeable glitches in a bunch of games.  The speed improvement
in some games is very good, but in quite a few it is small.
2014-01-01 15:49:11 -08:00
Unknown W. Brackets e24f45b9a4 Add ini options to configure the texture cache. 2014-01-01 15:49:09 -08:00