Commit Graph

25668 Commits

Author SHA1 Message Date
driver1998
010b07b2df Fix a crash on DirextX 11 with Feature Level <= 9_3 hardware
Mobile usually uses 9_3 or lower hardware.
The same issue happens on x64 as well, so it might be a universal one, not limited to ARM or UWP.
2019-05-04 22:45:16 +08:00
driver1998
93fe9c413b Update ppsspp_config.h for Windows ARM 2019-05-04 22:45:16 +08:00
driver1998
0aa33d53c0 Disable features not available on Windows ARM32/ARM64
ARM32: OpenGL & DirectInput
ARM64: OpenGL
2019-05-04 22:45:16 +08:00
driver1998
04744f28d6 Fix ssize_t in libzip for Windows ARM64 2019-05-04 22:45:16 +08:00
driver1998
392918d7ef Add Crash() for Windows ARM64 2019-05-04 22:45:15 +08:00
driver1998
95c5fabb2c Enable ArmCPUDetect on Windows Desktop 2019-05-04 22:45:15 +08:00
driver1998
beb8e72f8f Fix GetWindowsSystemArchitecture()
According to https://docs.microsoft.com/en-US/windows/desktop/api/sysinfoapi/ns-sysinfoapi-_system_info, sysinfo.wProcessorArchitecture is not a bitset, the current code returns x64 on anything not x86.
2019-05-04 22:45:15 +08:00
driver1998
5072584781 Fix neon headers for MSVC ARM64
MSVC uses arm64_neon.h for ARM64, arm_neon.h is ARM32 only.
2019-05-04 22:45:15 +08:00
driver1998
763b85d723 Update Visual Studio project files for Windows ARM32/ARM64 2019-05-04 22:45:15 +08:00
Henrik Rydgård
2d6514feb4
Merge pull request #12007 from unknownbrackets/mp3
Fix mp3 reset handling, use frame sync for ID3
2019-05-02 23:33:32 +02:00
Henrik Rydgård
417b3baf6c
Merge pull request #12012 from vnctdj/pngScreenshots
Enable PNG screenshots for all platforms
2019-05-02 23:07:55 +02:00
vnctdj
6cbf4cfea2 Enable PNG screenshots for all platforms 2019-05-02 22:56:25 +02:00
Henrik Rydgård
54bb78fd46
Merge pull request #12009 from unknownbrackets/ui-minor
UI: Make the screenshot key configurable
2019-05-01 15:17:48 +02:00
Unknown W. Brackets
03bec46b93 UI: Make the screenshot key configurable.
Affects #10825.
2019-04-30 19:01:20 -07:00
Unknown W. Brackets
848108c6ab Mp3: Set as inited only after success. 2019-04-29 04:47:59 -07:00
Unknown W. Brackets
4ee5d2b611 Mp3: Correct seek to specific frame.
Before, it treated it as an (incomplete) seek to a byte position, which
didn't make much sense.  This matches PSP behavior per tests.
2019-04-29 04:47:59 -07:00
Unknown W. Brackets
68d2571681 Mp3: Fix ID3 tag handling.
Just ignore them and handle via frame sync, which is what the PSP does..
2019-04-29 04:47:59 -07:00
Unknown W. Brackets
bfa9aa009d Mp3: Properly flush the buffer on reset. 2019-04-29 04:47:59 -07:00
Unknown W. Brackets
4b4c0f9bda Mp3: Always output data in decode, except at end.
Turns out this doesn't return 0 until the end, even if there's no data
available to decode.  It just writes zeros in that case.
2019-04-29 04:47:59 -07:00
Unknown W. Brackets
fde59c955d Mp3: Use a vector for the temp buffer.
Hopefully will move to reading RAM directly.  I think this was not always
adding data properly, as I got wrong output after decode.  Makes more
sense as a vector, anyway.
2019-04-29 04:45:36 -07:00
Henrik Rydgård
122f871c74
Merge pull request #12005 from unknownbrackets/mp3
Correct mp3 looping, frame num, and sum decoded
2019-04-29 13:37:41 +02:00
Unknown W. Brackets
925e4d1343 Mp3: Correct delay on decode. 2019-04-28 08:44:46 -07:00
Unknown W. Brackets
ac43e55194 Mp3: Loop correctly from an offset.
If the offset points to an ID3 tag or the middle of a frame, that's fine -
it should just search forward to the next sync.  FFmpeg just returns a
decode error, so we do this first.
2019-04-28 08:35:35 -07:00
Unknown W. Brackets
e4817b4e83 Mp3: Reset sum decoded on loop.
And only on loop, not when getting add info (which clearly doesn't loop,
from tests.)
2019-04-28 07:55:29 -07:00
Unknown W. Brackets
a3640f303b Mp3: Correct sum decoded sample count.
It shouldn't consider both channels of stereo.  This could've been causing
some games to think they were playing audio at an incorrect speed.
2019-04-28 07:30:56 -07:00
Unknown W. Brackets
bc1e6e12f5 Mp3: Return total frame count in sceMp3GetFrameNum.
This might fix games failing to play mp3s correctly.
2019-04-28 07:10:26 -07:00
Unknown W. Brackets
95d3d99343 Mp3: Fix loop func errors, clamp to -1.
Might matter if some game is checking the result.
2019-04-28 06:36:48 -07:00
Unknown W. Brackets
df9c922198
Merge pull request #10783 from LunaMoo/fillSoundBuffer
Remove "sound speed hack"
2019-04-28 06:20:13 -07:00
LunaMoo
53daa0d844 Remove some unused code. 2019-04-28 13:17:08 +02:00
LunaMoo
c82d75c66f
Merge pull request #11993 from unknownbrackets/mp3
Make sceMp3 more accurate, fix wrong output count
2019-04-28 09:29:02 +02:00
Unknown W. Brackets
320b4ff65f
Merge pull request #12003 from LunaMoo/TypoFix
Correct a potential typo
2019-04-27 22:01:58 -07:00
LunaMoo
9388a14a61 Add missing variable reset fixes #12002 2019-04-28 06:43:59 +02:00
LunaMoo
056494522e Remove default SDK version from project files 2019-04-27 23:01:41 +02:00
Henrik Rydgård
874c0f7207
Merge pull request #11995 from LunaMoo/FixVS2019
Fix VS2019 builds and remove _xp dependency
2019-04-26 23:29:15 +02:00
LunaMoo
280f7fec39 Fix VS2019 builds and remove _xp dependency
(drops Win XP support, allows latest SDK etc.)
2019-04-25 23:56:55 +02:00
LunaMoo
751ddf6fa2 Hopefully fix the annoying LR. 2019-04-25 04:22:09 +02:00
LunaMoo
0a4dc1f883 Remove "sound speed hack". 2019-04-25 04:15:31 +02:00
Unknown W. Brackets
0d6570e8ad Mp3: Correct sceMp3GetMaxOutputSample.
Was based on output buffer size, rather than frame size, before.

Fixes choppy audio in Velocity.
2019-04-24 14:31:12 -07:00
Unknown W. Brackets
be6710ea4a Mp3: Fix errors for a bunch of init getters. 2019-04-24 14:13:46 -07:00
Unknown W. Brackets
5f82258fa1 Mp3: Detect offset headers, reject invalid data.
ID3 handling not really tested.  Left some error codes disabled in case
people are happily playing some custom BGM that the PSP didn't support.
2019-04-24 09:16:21 -07:00
Henrik Rydgård
d15a6cf6bf
Merge pull request #11990 from m4xw/master
Band-Aid for libretro Savestate load
2019-04-24 11:00:47 +02:00
Unknown W. Brackets
e4d2712897 Mp3: Apply offset to stream read buffer.
Handle errors for sceMp3CheckStreamDataNeeded as well.
2019-04-23 21:14:54 -07:00
Unknown W. Brackets
f9863c3be2 Mp3: Align CheckStreamDataNeeded with InfoToAdd.
May cause problems if they don't match.
2019-04-23 20:42:13 -07:00
Unknown W. Brackets
f1eaf9dc0e Mp3: Don't change buffer accounting until add.
If we just ask what we should add, that is meant to stay static until we
do actually add it.

This also reduces the max we ask for at a time, which better matches
correct behavior and might impact game behavior.
2019-04-23 20:18:16 -07:00
Unknown W. Brackets
709c9dc93c Mp3: Fix errors on sceMp3NotifyAddStreamData. 2019-04-23 19:48:01 -07:00
M4xw
00bf914ce4 Band-Aid for libretro Savestate load
Proper would be using PPSSPP's Queue.
This will need frontend extensions to do it sanely.
Fixes #11429 (mitigate for now)
2019-04-23 17:35:24 +02:00
Unknown W. Brackets
5b9a3e6ca8 Mp3: Improve handle releasing behavior. 2019-04-22 23:01:40 -07:00
Unknown W. Brackets
4563d9487b Mp3: Better errors in sceMp3GetInfoToAddStreamData. 2019-04-22 22:57:05 -07:00
Unknown W. Brackets
351a10bd69 Mp3: Allow allocating two mp3 handles.
The handles are always 0 or 1, not pointers, which might be relied upon by
some games.  Two could be used with the same pointer.

This also makes NULL a valid pointer, which is used for low level mp3s.
2019-04-21 22:28:04 -07:00
Unknown W. Brackets
4ae2108629 Mp3: Fail to reserve if resource not inited.
Also, add a required parameter for sceMp3LowLevelInit, since it fails
unless proper values are passed for this on a PSP.
2019-04-21 19:54:34 -07:00