Commit Graph

2596 Commits

Author SHA1 Message Date
RadWolfie 313d8d8591 Implement DirectSoundStream Suppport
Ignore the IDirectSound3DListener coding mess. It will be fix later
on... (I hope)
2017-07-22 21:37:40 -05:00
RadWolfie b6b0cf0036 Implement Simple XADPCM Conversion Helper Function 2017-07-22 21:37:39 -05:00
RadWolfie b1f82aab0b Update DirectSoundStream and DirectSoundBuffer class
The following section has been included to able play xbox adpcm audio...
* DirectSoundStream (partially, needs more work done)
* DirectSoundBuffer (completed)
* Implement most of the DirectSound3DBuffer functions to be used with
DirectSoundBuffer class.

However the "hack" for all audio cache functions to update audio stream
are removed. It cause audio corruption.
2017-07-22 21:37:39 -05:00
RadWolfie d95be2d56e Implement blueshogun96 Xbox Audio Decoder method
Also revised to support stereo channel.
2017-07-22 21:37:39 -05:00
RadWolfie bbf93a6a14 Include XADPCM file
First initialiation for XADPCM Decoder process
2017-07-22 21:37:39 -05:00
PatrickvL 5ab5ee21b6 Merge pull request #511 from LukeUsher/various-tweaks-and-fixes
Various tweaks and fixes
2017-07-21 10:42:30 +02:00
Luke Usher 507a339329 Fix ObjectAttributes that contain a roothandle to BaseNamedObjects
A handle of -4 on the Xbox signifies the path should be in the BaseNamedObjects namespace.

This handle doesn't exist on Windows, so we prefix the name instead.
2017-07-21 09:35:32 +01:00
Luke Usher 4943b30b07 Changes to Warnings/Errors
Unknown BlendOp should not be a fatal error: It might make rendering incorrect, but won't cause breakage.

D3D_TILED logging is useless for now, ignoring the flag won't have any negative impact, it won't matter once we unpatch most of D3D & it's just polluting log files.
2017-07-21 08:18:01 +01:00
Luke Usher 02987ae7e9 Fix detection of support for D3DFMT_P8
It was posssible that RasterCaps returned RC_PALETTE while the hardware does not support D3DFORMAT_P8.

This situation was encounted with Intel HD Graphics 5500
2017-07-21 06:40:05 +01:00
Luke Usher d601ec591b Fix a crash when XREF_D3DDEVICE is not found 2017-07-20 21:37:22 +01:00
Luke Usher 98b5997a51 Increase sound buffer cache size
Alien vs Preditor now reaches ingame, it was exhausting the cache
2017-07-20 21:18:38 +01:00
Luke Usher e8bb561481 Add XInputClose & IDirecctSoundBuffer_AddRef to 5849 HLE Database
Homebrew: Alien vs Preditor now progresses further
2017-07-20 21:18:12 +01:00
Luke Usher 6dd23ddaff Add SetOutputBuffer to DSound 5558 Database
Improves homebrew: AftershockPoolSx.zip
2017-07-20 20:46:55 +01:00
Luke Usher bf85b14ca2 Merge remote-tracking branch 'upstream/master' into various-tweaks-and-fixes 2017-07-20 20:11:38 +01:00
Luke Usher 737feaa849 Merge pull request #510 from PatrickvL/add_flash_read
Introduce flash handling
2017-07-20 16:20:26 +01:00
PatrickvL 115ba5ffc6 Update XboxHardwareInfo
Removed macrovision flag, set sensible GPU and MCP revision numbers.
2017-07-20 17:13:27 +02:00
PatrickvL df9dba615e Return flash rom version 0x90 (indicating revision 1.6 hardware) 2017-07-20 17:09:15 +02:00
PatrickvL 7630f20cf6 tip 2017-07-20 15:19:13 +02:00
PatrickvL f454211bc8 MmMapIoSpace and MmUnmapIoSpace : Write-combined addresses are now passed-through 2017-07-20 15:18:59 +02:00
PatrickvL c2ec131a73 EmuX86 : Add flash read handler 2017-07-20 15:16:39 +02:00
PatrickvL bbdec7c40b Add XBOX_FLASH_ROM_BASE and SIZE 2017-07-20 15:07:27 +02:00
PatrickvL 87d10dcb67 Fix EmuX86_Read32Aligned check on NVNET 2017-07-20 15:06:29 +02:00
Luke Usher cb29e6d621 Unpatch CreateTexture 2017-07-20 12:46:25 +01:00
Luke Usher d97b56a530 Merge pull request #509 from PatrickvL/fix_opcode_size
Fix opcode size
2017-07-20 10:22:41 +01:00
PatrickvL eef1b633f8 Fix a TODO in EmuExceptionBreakpointAsk using EmuX86_OpcodeSize 2017-07-20 10:52:49 +02:00
PatrickvL 58194ec1ee Added EmuX86_OpcodeSize 2017-07-20 10:52:12 +02:00
PatrickvL a53e626c25 Extracted method EmuX86_DecodeOpcode 2017-07-20 10:51:57 +02:00
PatrickvL 3cebdf265e Remove debug code 2017-07-20 10:50:54 +02:00
PatrickvL c70c46ff1b Merge remote-tracking branch 'refs/remotes/Cxbx-Reloaded/master' 2017-07-19 15:31:54 +01:00
Luke Usher 7986a51a2e Merge pull request #508 from PatrickvL/check_palette_caps
Check palette caps
2017-07-19 14:28:35 +01:00
PatrickvL 25fc00ba6d Use paletized textures on systems that support them
Not many systems support paletized textures, so for the majority this
commit doesn't add anythings but a confirmation. But for those that do,
this avoids an unneeded conversion.
2017-07-19 15:05:41 +01:00
PatrickvL d7e1f628b4 Merge remote-tracking branch 'refs/remotes/Cxbx-Reloaded/master' 2017-07-19 14:26:05 +01:00
PatrickvL c63e330c96 Merge pull request #507 from LukeUsher/better-ap-bypass
Implement alternate Anti-Piracy patching
2017-07-19 14:14:54 +02:00
Luke Usher 384f305490 Implement alternate Anti-Piracy patching
This eliminates the need to iterate through the Xbe contents to apply media patches.

This method is the same one used by various 'hacked' kernels to bypass security checks.
2017-07-19 11:52:01 +01:00
Luke Usher 1f52d3843b Merge pull request #506 from PatrickvL/master
KeBugCheck fixups
2017-07-18 16:18:37 +01:00
PatrickvL f038cdcdb7 Call KeBugCheck with hexadecimal error codes and removed for (;;); 2017-07-18 17:08:53 +02:00
PatrickvL cc4a60b30d KfRaiseIrql and KfLowerIrql : call KeBugCheck 2017-07-18 16:16:20 +02:00
PatrickvL 2db429ac0e KeBugCheckEx : Correct spelling 2017-07-18 16:15:56 +02:00
PatrickvL c1c66e31e8 Merge branch 'Cxbx-Reloaded/master' 2017-07-18 14:51:49 +02:00
PatrickvL 8090d040dd Merge pull request #505 from LukeUsher/KeLowerIrql
Add partial implementation of KeLowerIrql
2017-07-18 14:16:06 +02:00
Luke Usher 7c8de3413c Add partial implementation of KeLowerIrql
There should be much less occurances of KeBugCheck being called now!

Verified with various peices of homebrew + XOnline Dashboard
2017-07-18 12:35:55 +01:00
Luke Usher 78f4d067fb Merge pull request #503 from LukeUsher/correct-nv2a-copyright
Correct NV2A Copyright
2017-07-16 21:56:53 +01:00
Luke Usher 23ae56a0f4 Correct NV2A Copyright 2017-07-16 21:55:37 +01:00
PatrickvL 200132bf80 Merge pull request #501 from LukeUsher/function-hooking-instead-of-patching
Function hooking instead of patching
2017-07-13 22:13:17 +02:00
Luke Usher 94f7503415 AppVeyor Fixes 2017-07-13 20:42:58 +01:00
Luke Usher a814277aae Attempt to fix AppVeyor for submodules 2017-07-13 20:37:23 +01:00
Luke Usher c2788743f0 Fix a compilation error in the new GetXboxFunctionPointer function 2017-07-13 20:19:38 +01:00
Luke Usher d52521e27b Rework patching to use Subhook library 2017-07-13 19:47:29 +01:00
Luke Usher 5f2fc6f04c Add subhook to Cxbx-Reloaded project 2017-07-13 19:46:59 +01:00
PatrickvL ccfe819190 Merge pull request #15 from Cxbx-Reloaded/master
Merge doesn't work, trying a Pull Request
2017-07-11 11:22:24 +02:00