Commit Graph

58 Commits

Author SHA1 Message Date
Jean-Philip Desjardins
e5ae547e66 Move saved state helper classes to a subfolder. 2019-02-06 19:04:51 -05:00
Jean-Philip Desjardins
52fc10624f Fix warning (constant size). 2018-06-06 13:35:38 -04:00
Clang-Format
acf75535ec Clang format 2018-04-30 21:01:23 +01:00
Jean-Philip Desjardins
ac5b76f244 Allow SPU interrupts to be triggered even though voice are not playing.
This seems to be the proper behavior as voices keep reading from memory all the time.
2018-04-23 09:46:42 -04:00
Jean-Philip Desjardins
22dc2fdb8f Cleanup. 2018-04-23 09:46:42 -04:00
Jean-Philip Desjardins
68883905f7 Update next sample address in all cases. 2018-04-23 09:46:41 -04:00
Jean-Philip Desjardins
f21e38e0a7 Add check for control register. 2018-04-07 11:40:33 -04:00
Jean-Philip Desjardins
f138bc30e6 Cleanup. 2018-03-20 11:01:31 -04:00
Jean-Philip Desjardins
370bfa2de9 Save more SPU info in saved states. 2017-09-10 17:00:31 -04:00
Jean-Philip Desjardins
92cc21467d Add more SPU info in saved state. 2017-09-10 16:59:58 -04:00
Mahmood(Thunder07)
97c229ec98 Cleanup
Silence:"warning: '0' flag ignored with precision and ‘%X’ gnu_printf format"
2017-05-29 06:01:32 +01:00
Jean-Philip Desjardins
9445424dc5 Add basic support for SPU sound input. 2016-12-20 18:56:49 -05:00
Jean-Philip Desjardins
8532219da6 Cleanup. 2016-12-20 18:56:49 -05:00
Jean-Philip Desjardins
f49f8cb121 Cleanup. 2016-12-20 18:56:49 -05:00
Jean-Philip Desjardins
5c933d64bf Disable reverb properly when it's off. 2016-12-20 18:56:48 -05:00
Jean-Philip Desjardins
f9f9c7e87f Cleanup. 2016-12-20 18:56:48 -05:00
Jean-Philip Desjardins
5146c5d011 Merge branch 'master' into build_unix 2015-10-24 22:58:24 -04:00
Jean-Philip Desjardins
523cf71a8c Clear SPU IRQ pending flag when C_IRQINFO is read. 2015-10-17 00:14:29 -04:00
Kyle McLamb
bff2643b84 Port libPlay to linux 2015-08-24 20:10:16 -04:00
Jean-Philip Desjardins
17f1ab59de Restart SPU sample readers when state is loaded. 2015-06-11 18:21:35 -04:00
Jean-Philip Desjardins
ac96f888f3 Fixed problems with SPU block transfers overwriting voice data and renamed some stuff. 2015-06-11 17:58:04 -04:00
Jean-Philip Desjardins
e8336e6d51 Removed FFX pitch hack because it shouldn't exist. 2015-06-10 04:13:48 -04:00
Jean-Philip Desjardins
d703745669 Improved SPU IRQ detection. 2015-06-04 23:49:03 -04:00
Jean-Philip Desjardins
4844a0679b Added more SPU stuff in saved state. 2015-06-02 02:43:34 -04:00
Jean-Philip Desjardins
9f37845510 Cleaned some dodgy code in sample decoder. 2015-06-02 00:14:48 -04:00
Jean-Philip Desjardins
841f2b6125 Changed the way samples are read from SPU ram to be able to mask off the address properly and prevent crashes. 2015-05-08 21:47:04 -04:00
Jean-Philip Desjardins
12a0421c1c If in DMA is in reading mode, don't actually write data to SPU RAM (proper read needs to be implemented). 2015-04-28 00:34:12 -04:00
Jean-Philip Desjardins
7ae2dd4631 Throttle SPU DMA reads to allow FFX's sound module to synchronize itself properly. 2015-03-30 01:24:53 -04:00
Jean-Philip Desjardins
1aa74d7dcc Make sure pitch isn't 0 in SPU channel. 2015-03-30 01:08:36 -04:00
Jean-Philip Desjardins
136f7cef2d Allow repeat parameter of an SPU channel to be changed by the CPU while channel is playing. 2015-03-30 01:01:20 -04:00
Jean-Philip Desjardins
685b3eab25 Improved IRQ address detection in SPU. 2015-03-20 23:28:37 -04:00
Jean-Philip Desjardins
8d194fbcde Save IRQADDR state. 2015-03-18 22:55:12 -04:00
Jean-Philip Desjardins
7f60f5c3d5 Added basic support for SPU interrupts. 2015-02-08 17:18:41 -05:00
jpd002
336d4f7343 Removed usage of 64-bits arithmetic in SpuBase to improve sound rendering performance.
git-svn-id: http://svn.purei.org/purei/trunk@1196 b36208d7-6611-0410-8bec-b1987f11c4a2
2013-10-15 02:36:04 +00:00
jpd002
163300111e Replaced the "DmaDisabled" mode by a "StreamingEnabled" mode in SpuBase since that unknown register in SPU2 CORE seems to be used for that.
git-svn-id: http://svn.purei.org/purei/trunk@1088 b36208d7-6611-0410-8bec-b1987f11c4a2
2013-03-06 04:42:17 +00:00
jpd002
7a87b2e166 Added support for saving and loading the state of the IOP INTC and SPU units (partially).
git-svn-id: http://svn.purei.org/purei/trunk@1084 b36208d7-6611-0410-8bec-b1987f11c4a2
2013-03-05 05:42:20 +00:00
jpd002
7c8db60731 SPU: Added support for linear volume sweeping.
git-svn-id: http://svn.purei.org/purei/trunk@1041 b36208d7-6611-0410-8bec-b1987f11c4a2
2012-11-18 06:14:46 +00:00
jpd002
2163e25aa2 SPU: Changed the way samples are fetched and resampled, removing float usage and fixing some sudden playback speed change problems (especially with streamed tracks).
git-svn-id: http://svn.purei.org/purei/trunk@1038 b36208d7-6611-0410-8bec-b1987f11c4a2
2012-11-14 04:49:39 +00:00
jpd002
8b89a7b7fd SPU: Only change the channel's repeat register when it's actually changed by the sample reader.
git-svn-id: http://svn.purei.org/purei/trunk@1031 b36208d7-6611-0410-8bec-b1987f11c4a2
2012-11-01 03:21:14 +00:00
jpd002
e508443efd SPU: Clamp decoded samples to prevent some rare screeching happening because the sample value has exceeded the range of a 16-bit integer.
git-svn-id: http://svn.purei.org/purei/trunk@1030 b36208d7-6611-0410-8bec-b1987f11c4a2
2012-11-01 02:06:18 +00:00
jpd002
f957c3a065 Cleanup.
git-svn-id: http://svn.purei.org/purei/trunk@1027 b36208d7-6611-0410-8bec-b1987f11c4a2
2012-10-29 05:49:35 +00:00
jpd002
8afface94d Optimized "ReadModuleName" in IopBios so that it only fetches the memory map once.
Removed "using namespace std" in IopBios.
Removed mixing of the reverb sample when reverb is not enabled.

git-svn-id: http://svn.purei.org/purei/trunk@733 b36208d7-6611-0410-8bec-b1987f11c4a2
2011-01-16 21:47:01 +00:00
jpd002
1424631266 Cleaned up code in Iop_SpuBase.
git-svn-id: http://svn.purei.org/purei/trunk@732 b36208d7-6611-0410-8bec-b1987f11c4a2
2011-01-02 21:42:29 +00:00
jpd002
aa422d797d Replaced floating based ADPCM decoding routine with fixed point.
git-svn-id: http://svn.purei.org/purei/trunk@731 b36208d7-6611-0410-8bec-b1987f11c4a2
2011-01-02 21:30:58 +00:00
jpd002
e645843373 Removed use of modf in SpuBase.
git-svn-id: http://svn.purei.org/purei/trunk@680 b36208d7-6611-0410-8bec-b1987f11c4a2
2010-07-17 22:52:46 +00:00
jpd002
6d1c9aeb67 PsfPlayer: Added basic reverb support in PSP/SasCore emulation.
git-svn-id: http://svn.purei.org/purei/trunk@670 b36208d7-6611-0410-8bec-b1987f11c4a2
2010-06-23 03:55:01 +00:00
jpd002
653b82d4d6 Removed use of int64 in ADSR update code.
git-svn-id: http://svn.purei.org/purei/trunk@558 b36208d7-6611-0410-8bec-b1987f11c4a2
2009-11-15 22:16:57 +00:00
jpd002
936988f932 Removed useless patches for Guilty Gear XX.
Removed commented stuff from OpenGL texture management.
Updated tags for Guilty Gear XX.
Added a hack to make Guilty Gear XX work without hanging between screens. (Music streaming seems to be causing problems)

git-svn-id: http://svn.purei.org/purei/trunk@501 b36208d7-6611-0410-8bec-b1987f11c4a2
2009-04-16 02:59:12 +00:00
jpd002
d4eaea2eb5 Some optimisations to SpuBase.
git-svn-id: http://svn.purei.org/purei/trunk@480 b36208d7-6611-0410-8bec-b1987f11c4a2
2009-02-13 17:39:23 +00:00
jpd002
dfce68d498 PsfPlayer: Volume adjustment support.
git-svn-id: http://svn.purei.org/purei/trunk@478 b36208d7-6611-0410-8bec-b1987f11c4a2
2009-02-11 21:57:28 +00:00