Commit Graph

286 Commits

Author SHA1 Message Date
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 e3ddcd44e7 Minor fixes and fixing thread names. 2015-05-25 21:10:28 -07:00
gibbed a2ed902980 Removed a debug line in XAudio2 audio driver. 2015-05-25 14:29:13 -05:00
Ben Vanik 273b9939e1 Fixing some misc thread/audio stuff. 2015-05-25 00:58:43 -07:00
Ben Vanik f5a2b85d42 Switching to xe::mutex. 2015-05-25 00:52:21 -07:00
Ben Vanik fff1a7c132 Switching std::thread to XThread and hosting in object_refs. 2015-05-25 00:51:26 -07:00
gibbed 8a5d3526e5 Pump audio faster, up to XAUDIO2_MAX_QUEUED_BUFFERS (64) frames, then wait. 2015-05-25 02:49:49 -05:00
Dr. Chat 65df257ede Fix audio decoder - mono sounds are working now! 2015-05-24 22:26:46 -05:00
Dr. Chat 4f8d8e62b3 Use av_frame_free / Log when couldn't reopen context. 2015-05-23 00:09:58 -05:00
Dr. Chat 866a5af427 Initialize pointers to nullptr 2015-05-23 00:07:35 -05:00
Dr. Chat 3389b9e421 AudioDecoder destructor 2015-05-23 00:07:34 -05:00
Dr. Chat a69d1b7f04 Discard the current packet when XMA context is released
Some more cleanup
2015-05-23 00:07:33 -05:00
Dr. Chat a6175dba48 Remove more accidentally committed files; rename .cpp to .cc 2015-05-23 00:07:33 -05:00
Dr. Chat f31b34256b WIP Audio decoder
Remove some old comments
2015-05-23 00:07:20 -05:00
Ben Vanik 9e685a1453 Merge pull request #216 from DrChat/audio
Cleanup some audio code
2015-05-19 22:24:00 -07:00
Ben Vanik f88bf33b4f Moving threads to XHostThread and making shutdown not crash. 2015-05-19 22:20:49 -07:00
Dr. Chat 38918c86a8 Cleanup some audio system code 2015-05-19 21:52:21 -05:00
Dr. Chat b1920f4a87 Move audio system onto XHostThread 2015-05-18 22:25:02 -05:00
Ben Vanik b44a7a7730 Allocating stacks in the right place. 2015-05-17 13:10:02 -07:00
Ben Vanik 147a70b9c1 Rewriting memory manager. 2015-05-17 00:16:56 +01:00
Ben Vanik 986534d448 Adding --mute. 2015-05-15 23:34:00 -07:00
Dr. Chat 420d4e43b6 Increase audio worker thread and cpu interrupt thread stack size 2015-05-15 18:12:44 -05:00
Ben Vanik 7a00b76a6e Debugger stuff, and changing to vcproj's/sln. 2015-05-09 17:48:12 -07:00
Ben Vanik 78921c1a7e Merging Runtime into Processor. 2015-05-03 22:28:25 -07:00
Ben Vanik d1ee1512b9 Fixing most clang-format errors. 2015-05-03 10:27:50 -07:00
Ben Vanik e3220f7ae6 Code cleanup: moving poly/ into xenia/base/ 2015-05-02 03:42:51 -07:00
Ben Vanik 99816056be Code cleanup: removing poly.h 2015-05-02 02:29:26 -07:00
Ben Vanik 30f7effa73 Code cleanup: removing common.h 2015-05-02 01:25:59 -07:00
Ben Vanik 6d8a226d7f Code cleanup. 2015-03-29 11:27:33 -07:00
Ben Vanik 45b2d2ceea Fixing xaudio2 memory type. 2015-03-29 11:26:16 -07:00
Ben Vanik ec84a688e9 Starting to properly attribute virtual vs. physical memory accesses. 2015-03-29 11:11:35 -07:00
Ben Vanik 3a197705bb Special memory functions for system allocs. 2015-03-28 15:54:44 -07:00
Ben Vanik 9281d62106 Moving cpu/runtime/ to cpu/. 2015-03-24 08:25:58 -07:00
Ben Vanik 17bc561045 Implement XMA* methods.
Fixes #156.
2015-02-16 22:22:42 -08:00
Ben Vanik 50b0746a26 XMA hardware spoofing when using direct register access.
This works for recent games that don't use the XMA* methods.
Upcoming CLs will add the XMA* method shims forthcoming.
2015-02-16 17:18:28 -08:00
Ben Vanik 00e4a4fe1b Fix #include format. 2015-01-31 22:49:47 -08:00
Ben Vanik 76c41edfd6 Thread names. 2015-01-03 03:42:27 -08:00
Ben Vanik a0eebf8898 Removing old run loop/ref/core/etc. 2014-12-31 19:26:51 -08:00
Ben Vanik a4141e84ce Sigh. 2014-11-08 11:38:07 -08:00
Ben Vanik 08b0226a16 Finishing unique_ptr'ing and fixing file memory management (for now). 2014-08-21 07:54:19 -07:00
Ben Vanik c59d053404 unique_ptr'ing things and removing some XECLEANUP. 2014-08-20 23:26:46 -07:00
Ben Vanik 244e8a8745 Removing the last of XEDECLARECLASS. 2014-08-20 22:50:10 -07:00
Ben Vanik 48a0e5c601 Shrinking alloy memory interface so that alloy-sandbox doesn't need xe. 2014-08-19 21:02:15 -07:00
Ben Vanik f2a9fa3bf9 XECOUNT to countof. 2014-08-16 17:58:33 -07:00
Ben Vanik 187d0ad277 Removing XESAFERELEASE. 2014-08-16 17:33:24 -07:00
Ben Vanik 01f0b14250 Removing xe_thread_t. 2014-08-16 01:36:45 -07:00
Ben Vanik bca49bed4b Removing xe_mutex_t. 2014-08-16 00:56:50 -07:00
Ben Vanik ec4f41fec4 Moving byte order/memory access to poly. 2014-07-17 19:20:17 -07:00
Ben Vanik bf882714d0 Cleaning up asserts and file/line macros. 2014-07-12 16:51:52 -07:00
Ben Vanik d5f27dbf34 Better arg passing for Execute and experimenting with APCs. 2014-07-02 15:39:49 -07:00
Ben Vanik 0e3854555d Pure dynamic MMIO access. Prep for more complex GPU memory management. 2014-06-01 23:36:18 -07:00
Ben Vanik 997f582d1f Removing useless counters. 2014-05-28 20:32:50 -07:00
Ben Vanik 18b1f9f513 Fixing controller input. 2014-05-28 20:19:28 -07:00
Ben Vanik c1812406f5 Adding a bunch of profiling tracers. 2014-05-28 19:19:39 -07:00
Ben Vanik b1ab2fb0a7 That was a terrible idea. Let us never speak of it again. 2014-02-01 00:41:36 -08:00
Ben Vanik 10c9537836 Swapping register values. 2014-02-01 00:05:21 -08:00
gibbed 2f8f893977 Don't need to create the mastering voice with with an explicit number of channels or sample rate. 2014-01-25 04:50:47 -08:00
gibbed 47c71d702a Audio system overhaul for support of multiple audio drivers. 2014-01-25 03:18:22 -08:00
gibbed 40178cb22d Minor changes to APU. 2014-01-18 06:06:34 -08:00
Ben Vanik e7d61f4b1f Removing use of runloop from audio system. 2014-01-14 19:52:32 -08:00
Ben Vanik 81226db1b4 Fixing broken instruction decoding. 2014-01-13 23:24:28 -08:00
gibbed e1bb5bc860 Oops. 2014-01-13 02:49:30 -08:00
gibbed c1b71ce1db Merge branch 'master' of https://github.com/benvanik/xenia
Conflicts:
	src/xenia/apu/xaudio2/xaudio2_audio_system.cc
2014-01-13 02:46:50 -08:00
gibbed f47ebb5010 More XAudio2 junk. 2014-01-13 02:45:18 -08:00
Ben Vanik 6f09c12bc2 Creating mastering voice with the right params. 2014-01-13 01:06:30 -08:00
gibbed 24e857cc03 Small fix to waveformat. 2014-01-13 01:00:06 -08:00
Ben Vanik dccdc00735 Tweaking audio params. 2014-01-13 00:45:09 -08:00
Ben Vanik 133cbedad8 Replacing exit with assert, as exits are hard to find. 2014-01-13 00:33:40 -08:00
gibbed d30f4b25b9 Oops. 2014-01-13 00:25:10 -08:00
gibbed 74d26b2814 Still wrong, but... 2014-01-13 00:23:29 -08:00
Ben Vanik f6ca6cced8 Audio engine now blocking when buffers are full. 2014-01-13 00:20:53 -08:00
Ben Vanik 20ad328e4a Removing AudioDriver. 2014-01-13 00:05:08 -08:00
Ben Vanik ae5b87ea2a Enable xaudio error logging. 2014-01-13 00:01:51 -08:00
Ben Vanik 4f552da6c4 Inefficient, but pumping audio. 2014-01-12 23:52:55 -08:00
Ben Vanik ab9d384813 Passing samples. 2014-01-12 23:43:58 -08:00
gibbed edb1633fc9 XAudio2 APU stub. 2014-01-12 23:23:55 -08:00
Ben Vanik ecbd2c7e89 Pushing audio samples through. 2014-01-12 02:39:47 -08:00
Ben Vanik 127595b48a Issuing audio driver callbacks from their own thread. 2014-01-12 02:07:17 -08:00
Ben Vanik 4688d5e600 Starting work on audio. 2014-01-12 01:27:41 -08:00
Ben Vanik 7969349126 Fixing some shutdown code. 2014-01-02 18:58:44 -08:00
Ben Vanik fdb6a5cfa3 Initial Alloy implementation.
This is a regression in functionality and performance, but a much better
foundation for the future of the project (I think). It can run basic
apps under an SSA interpreter but doesn't support some of the features
required to do real 360 apps yet.
2013-12-06 22:57:16 -08:00
Ben Vanik 082df81f70 Slowing down the audio system until it does something. 2013-10-27 12:05:17 -07:00
Ben Vanik ebef2aef36 Adding audio stub methods. 2013-10-23 23:09:16 -07:00
Ben Vanik 74803ae174 HID system skeleton. 2013-10-23 21:47:36 -07:00
Ben Vanik b7ffd46319 Massive refactoring of all code + audio skeleton.
This should make it easier to find files and (in the future) split things
up into separate libraries.
It also changes around emulator initialization to make it a little more
difficult to do things out of order and a little more sensible as to when
real init work happens.
Also adding a skeleton audio system/driver and reworking CPU register
access to be more extensible.
2013-10-23 20:42:24 -07:00