Commit Graph

2102 Commits

Author SHA1 Message Date
gibbed 225bb74316 Oops. Not sure how that got reverted. 2015-06-01 20:05:54 -05:00
gibbed 2a2fe509e6 Rename _vswprintf to vswprintf. 2015-06-01 19:42:23 -05:00
gibbed 5b06b8436e Use std::ostringstream instead of std::stringstream. 2015-06-01 19:32:13 -05:00
gibbed fe8d058b36 Completely reimplemented xboxkrnl formatting related functions (sprintf, etc). No longer relies on CRT-provided sprintf/etc. Floating-point types needs more thorough testing. 2015-06-01 19:29:25 -05:00
gibbed 633d72a98e Corrected NtQueryFullAttributesFile behavior when root_directory is 0. 2015-06-01 19:01:57 -05:00
gibbed 7c5ea52022 Updated functions pulling arguments out of the stack to use the appropriate SHIM_GET_ARG_* macro. 2015-06-01 19:01:56 -05:00
gibbed 8c49281bb5 Improvements to SHIM_GET_ARG_* macros. 2015-06-01 19:01:49 -05:00
Ben Vanik ce3359389b Allow new-style export registration. 2015-05-31 17:54:44 -07:00
Ben Vanik 08770a4ec0 Mass renaming. I love clang-format. 2015-05-31 16:58:12 -07:00
Ben Vanik 9c3d2b54fb Cleanup before kernel export refactor. 2015-05-31 16:31:19 -07:00
Ben Vanik fccab79a7a Adding kernel state pointer to PPCContext. Still needs larger cleanup. 2015-05-31 14:35:56 -07:00
Ben Vanik d816d80190 StringBuffer cleanup. 2015-05-31 14:35:30 -07:00
Ben Vanik da6edbe1d7 Update README.md 2015-05-31 14:34:07 -07:00
Ben Vanik 80c2078b9a Merge pull request #231 from DrChat/audio_decoding
Multi-channel decoding fix
2015-05-30 22:23:05 -07:00
Dr. Chat 128bf76205 Fixed up multi-channel audio, works better now. 2015-05-30 22:47:41 -05:00
Dr. Chat dfd689e22b Whoops, we should be converting samples from more than one channel! 2015-05-30 21:27:59 -05:00
Dr. Chat fedf7357a5 Remove variable bits per sample - it's always 16. 2015-05-30 21:01:55 -05:00
Ben Vanik c97b462d8d Fix assert. 2015-05-30 18:04:31 -07:00
Ben Vanik c4ef5d4eb8 Allow AllocFixed of unreserved ranges. 2015-05-29 21:47:19 -07:00
Ben Vanik d97a6d1929 NtReadFile APC, somewhat. 2015-05-29 21:24:23 -07:00
Ben Vanik a4edb7f9e1 Removing 64bit return type and cleaning up some SHIM* stuff pre-refactor. 2015-05-29 17:12:30 -07:00
Ben Vanik 0a83b49744 Speeding up inner loop. 2015-05-29 17:05:43 -07:00
Ben Vanik f54dbe52c2 Merge pull request #230 from DrChat/audio_whoops
Whoops - PCM samples are signed, not unsigned
2015-05-29 16:53:47 -07:00
Dr. Chat 40f98f195f Whoops - PCM samples are signed, not unsigned 2015-05-29 18:52:43 -05:00
gibbed 07c0724cf0 Some work on VdSwap. 2015-05-29 15:59:57 -05:00
gibbed 35bea36fc4 Added a magic value to XE_SWAP packets to make it obvious if there's an opcode collision. 2015-05-29 15:59:56 -05:00
Ben Vanik aee205101b Merge pull request #229 from DrChat/more_audio_fixes
More Audio Fixes
2015-05-28 22:44:07 -07:00
Dr. Chat 8c1b36d102 Don't need this. 2015-05-28 22:34:59 -05:00
Dr. Chat d303f4a5ce Fix raw sample clamping 2015-05-28 22:31:55 -05:00
Dr. Chat fb787d4737 XMA context.kicked flag 2015-05-28 22:09:04 -05:00
Dr. Chat 73daf9cedc Select input buffer 1 if needed, and hookup sequence offset. 2015-05-28 21:58:39 -05:00
Dr. Chat 4675a1e17a Audio decoder now takes a "sequence" offset to feed to the WMAPro decoder. 2015-05-28 21:57:57 -05:00
gibbed 0050b3df83 Assign a CPU number based on the proc affinity mask on thread creation. Fixes audio threads not starting properly on Frogger 2, and possibly other titles. 2015-05-28 12:56:56 -05:00
gibbed 3300945660 Fixed 8-bit and 16-bit xe::lzcnt. 2015-05-28 12:16:19 -05:00
gibbed d1dbee2052 Consistency in memset calls. 2015-05-28 05:28:59 -05:00
gibbed 32fff9271b Yeah, let's zero the right argument, m'kay. 2015-05-28 05:22:36 -05:00
gibbed 1613ef35a6 %S support for vsprintf. 2015-05-28 05:18:15 -05:00
gibbed 671d6f3746 Making assumptions about how big the buffer being passed to VdGetSystemCommandBuffer is. Seems to work and fix the divide by zero trap many games were making. 2015-05-28 05:18:14 -05:00
Ben Vanik e419d314b3 Audio now works a bit better, but is still broken :/ 2015-05-28 02:15:30 -07:00
Ben Vanik a93325434a Minor audio tweeks + profiling. 2015-05-28 00:19:17 -07:00
Ben Vanik db3d8fdc87 Time scaling works (num pad +/- or --time_scalar=X). 2015-05-27 19:04:47 -07:00
gibbed 0b75d409d2 Somehow this assert got removed. 2015-05-27 15:06:11 -05:00
gibbed 4280ae8adc Corrected HostPathEntry::QueryDirectory return value when the first search fails. 2015-05-27 14:36:59 -05:00
Ben Vanik 8244409501 Refactoring to enable future time scaling, coordinated clocks, etc. 2015-05-26 22:20:58 -07:00
gibbed 05f2577fb7 Hurf. SHIM_SET_RETURN_64 -> SHIM_SET_RETURN_32. 2015-05-26 23:06:26 -05:00
Ben Vanik 9ac61ed869 Fixing form designer. 2015-05-26 17:50:41 -07:00
Ben Vanik 7a0d2d09b7 Switching dockpanelsuite to forked version. 2015-05-26 17:31:51 -07:00
Ben Vanik 7ec8cfcc2b Merge pull request #226 from shuffle2/fixup-vs-sln
Fixup vs sln
2015-05-26 17:19:45 -07:00
Ben Vanik 7ba6e62eb1 Merge pull request #227 from shuffle2/msvc-constexpr
vs2015 supports constexpr
2015-05-26 17:17:47 -07:00
Shawn Hoffman b6d51d86ee vs2015 supports constexpr 2015-05-26 14:25:45 -07:00