Commit graph

51 commits

Author SHA1 Message Date
XTra.KrazzY
c86d2e5129 Now ALL copyright dates are fixed to the legally correct year: The year in which the project began. Now we don't have to change it every year :)
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3898 8ced0084-cf51-0410-be5f-012b33b47a6e
2009-07-28 21:32:10 +00:00
luigi2us
4e95ed4564 Zelda uCode: Fixed an extremely stupid bug (forgot an else).
Should definitely fix SMS.

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3825 8ced0084-cf51-0410-be5f-012b33b47a6e
2009-07-17 23:36:34 +00:00
luigi2us
8cdae6fc1d Zelda uCode (SMS): fix a bug where we would receive more sync mails that expected.
Actually the sync mail sequences contain 3 mails, not 2.
That's what happens when you don't look at the uCode enough...

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3824 8ced0084-cf51-0410-be5f-012b33b47a6e
2009-07-17 23:26:21 +00:00
luigi2us
d5c7105c78 Zelda uCode: try to fix Super Mario Sunshine (hard since I don't have the game).
Let's hope it'll work. If yes, we can open the champagne :D

(BTW: yeah, again a HandleMail() clone)

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3823 8ced0084-cf51-0410-be5f-012b33b47a6e
2009-07-17 22:57:56 +00:00
hrydgard
fda61d91d5 DSPHLE: Try to make zelda ucode savestates safer (sorry, this'll break your current states, as usual).
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3788 8ced0084-cf51-0410-be5f-012b33b47a6e
2009-07-13 20:56:49 +00:00
luigi2us
389a2c6fc8 Fixed some bugs with light version.
Now Luigi's Mansion has sound!

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3782 8ced0084-cf51-0410-be5f-012b33b47a6e
2009-07-13 14:51:06 +00:00
luigi2us
ba5f08c69d This should fix "unknown command 00" error message with Luigi's mansion.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3778 8ced0084-cf51-0410-be5f-012b33b47a6e
2009-07-13 10:42:06 +00:00
luigi2us
5cb42673ed Oops... forgot stream update for light version.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3773 8ced0084-cf51-0410-be5f-012b33b47a6e
2009-07-12 23:53:21 +00:00
luigi2us
ddd09eda84 More correct and cleaner merge of Zelda (normal) and Luigi (light) uCodes.
Split HandleMail into two functions, one for each version.
Let's hope it won't break anything...

BTW: if you wonder what "DMA version" and "Light version" mean:
 - DMA version is, say, the uCode used by SMG
 - Light version is Luigi-styled uCode (named that way for obvious reasons)

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3772 8ced0084-cf51-0410-be5f-012b33b47a6e
2009-07-12 23:51:18 +00:00
hrydgard
fe76193641 DSPHLE: Attempt at type 0x21 emulation. Enough for zelda ww intro music to play in a strange choppy way, not enough for it to stop hanging :p
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3767 8ced0084-cf51-0410-be5f-012b33b47a6e
2009-07-12 19:34:59 +00:00
hrydgard
0bdf6656c5 DSPHLE: Do the resampling correctly for PCM16 and AFC. Added linear interpolation (that works, this time :P)
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3764 8ced0084-cf51-0410-be5f-012b33b47a6e
2009-07-12 13:45:01 +00:00
hrydgard
304b34a451 DSPHLE: Some code reorg, now looks more like the ucode. DSPLLE: Rename a file.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3763 8ced0084-cf51-0410-be5f-012b33b47a6e
2009-07-12 12:22:39 +00:00
hrydgard
f6edc361b4 Delete the "Jac" uCode HLE, merge it into the Zelda ucode. The games (Luigi, Pikmin) communicate fine but don't make any sound :(
Improved volume mode 0. Initial work on more correct volume mode 1 emulation sounds, but it's not activated. Made the volumes less annoying, anyway.

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3746 8ced0084-cf51-0410-be5f-012b33b47a6e
2009-07-11 13:57:21 +00:00
XTra.KrazzY
92e63e3ac4 Various changes: Fixed linux build, added some zelda ucode RE, added HLE mail logging features
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3704 8ced0084-cf51-0410-be5f-012b33b47a6e
2009-07-07 15:12:52 +00:00
luigi2us
45771c8614 Uncomment what was accidentally commented out. Sorry.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3692 8ced0084-cf51-0410-be5f-012b33b47a6e
2009-07-06 12:21:27 +00:00
luigi2us
85a3661afc Make AFCdecodebuffer static.
Also remove some #include UCode_Zelda_ADPCM.h I forgot.

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3691 8ced0084-cf51-0410-be5f-012b33b47a6e
2009-07-06 12:20:01 +00:00
Shawn Hoffman
8fe9db180c dsp hle: fix a hang some people were having with zelda ucode. doesn't seem to break SMG...I'm really not sure either one is the correct behavior though. (some dsp master check!)
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3687 8ced0084-cf51-0410-be5f-012b33b47a6e
2009-07-05 21:34:57 +00:00
XTra.KrazzY
e7ec7d56d5 DSPHLE: Decoded most of 0x21. Added real conclusions to the switch case to signal the CPU that the voice has been played. More work on 0x20/0x21/Raw (and probably the end of it) this weekend.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3683 8ced0084-cf51-0410-be5f-012b33b47a6e
2009-07-05 19:14:10 +00:00
hrydgard
90a2096a24 Assorted cleanup, perf counter logging, and minor fixes that have been accumulating on my hdd :p
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3663 8ced0084-cf51-0410-be5f-012b33b47a6e
2009-07-03 18:33:28 +00:00
hrydgard
54eea4d1a8 DSPHLE: fix uninitialized variable, delete obsolete junk (didn't I already do this? :P)
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3638 8ced0084-cf51-0410-be5f-012b33b47a6e
2009-07-01 22:36:59 +00:00
hrydgard
5ca6d2761e DSPHLE: Early implementation of volume. I'm sure there's something missing but this makes the Zelda games sound a lot better, except WW which loses a lot of audio on the title screen and link's noises are too soft.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3635 8ced0084-cf51-0410-be5f-012b33b47a6e
2009-07-01 20:55:43 +00:00
XTra.KrazzY
9ccf992aaa Forgot to commit this a while ago. Cleared up some zelda ucode stuff
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3606 8ced0084-cf51-0410-be5f-012b33b47a6e
2009-06-29 21:41:13 +00:00
luigi2us
c9cc3c355d Try to (re-)implement AFC sound. This is an adaptation of the code I commented out in the PCM16 commit.
For some reason AFC sound is slightly wrong. I don't know if it also happened before, but I'll work on it.

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3600 8ced0084-cf51-0410-be5f-012b33b47a6e
2009-06-29 18:11:32 +00:00
luigi2us
e39658df7c This should fix SMG random freeze. Not sure though. Please check.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3596 8ced0084-cf51-0410-be5f-012b33b47a6e
2009-06-29 16:19:06 +00:00
hrydgard
dfdfbd4a6a Delete some obsolete junk, in zelda ucode and in gl plugin.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3577 8ced0084-cf51-0410-be5f-012b33b47a6e
2009-06-28 17:58:52 +00:00
luigi2us
1aab3252fa Added support for playing PCM16 sounds, looping or non-looping.
It is a bit hacky and may have problems, but now SMG has music.
I'll try to do AFC / ADPCM for next commit.

PS: sorry. lots of stuff from latest commits will be reverted because, when updating, I got serious conflicts and everything was messed up :(
if you want I can help you with reintegrating what was lost.

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3570 8ced0084-cf51-0410-be5f-012b33b47a6e
2009-06-28 14:22:51 +00:00
hrydgard
aecaf271f1 New DSP debugger: step one. (not ready yet, but try loading zelda WW and look at the dsp debugger..).
Had to shuffle around quite a lot of code to be able to extract the CodeView into a library nicely so it can be used from both the main dolphin and the LLE plugin...  also extracted the symboldb code.

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3517 8ced0084-cf51-0410-be5f-012b33b47a6e
2009-06-21 08:39:21 +00:00
hrydgard
35a9f15efa typo
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3506 8ced0084-cf51-0410-be5f-012b33b47a6e
2009-06-20 11:02:16 +00:00
hrydgard
8d30e3f3c0 DSP HLE: Break out the ADPCM decoder, add a few comments.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3504 8ced0084-cf51-0410-be5f-012b33b47a6e
2009-06-20 10:39:45 +00:00
XTra.KrazzY
22a6533f7f State saving is now consistent with the Zelda UCode. We can now save, load, and still hear sound
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3503 8ced0084-cf51-0410-be5f-012b33b47a6e
2009-06-20 10:24:49 +00:00
fires.gc
d4a0e1f8d0 DSP HLE improvements...
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3499 8ced0084-cf51-0410-be5f-012b33b47a6e
2009-06-20 01:33:13 +00:00
hrydgard
51cbdea782 MemoryView can now view ARAM (rightclick -> toggle memory). Add "search for instruction" capability to debugger. Code cleanup, log zelda pb type (9 all the time in Zelda Four Swords)
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3479 8ced0084-cf51-0410-be5f-012b33b47a6e
2009-06-17 19:50:59 +00:00
hrydgard
4a5cf26160 messing about with the zelda ucode hle code, not really getting anywhere :/
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3472 8ced0084-cf51-0410-be5f-012b33b47a6e
2009-06-16 21:58:49 +00:00
hrydgard
81f6d431dc stop the preliminary zelda ucode from overreading from its own internal buffers.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3468 8ced0084-cf51-0410-be5f-012b33b47a6e
2009-06-16 20:01:08 +00:00
hrydgard
4ed15aedf5 Add a couple of comments to Zelda ucode HLE - now we know exactly what the DSPADPCM_FILTER is at least.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3467 8ced0084-cf51-0410-be5f-012b33b47a6e
2009-06-16 19:35:54 +00:00
XTra.KrazzY
dd640a4937 Zelda ucode cleanup
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3423 8ced0084-cf51-0410-be5f-012b33b47a6e
2009-06-13 12:02:02 +00:00
XTra.KrazzY
0b082d303b Tiny commit:
1. OpenAL is now selectable by default (I don't know why it was disabled)
2. Informativeness on Zelda UCode

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3395 8ced0084-cf51-0410-be5f-012b33b47a6e
2009-06-09 20:22:53 +00:00
luigi2us
36026c62ed This is the result of my investigations on the Zelda ucode, and more spceially
on these famous mails (00000000,000000000, 00000000,00010000, 00000000,00020000,
00000000,00030000) and command 0x2 (SyncFrame) too (these two things are tied
together).
Super Mario Galaxy now keeps sending commands 0x2 followed by the famous mails. 
Is it what it is supposed to do?

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3392 8ced0084-cf51-0410-be5f-012b33b47a6e
2009-06-09 19:51:19 +00:00
hrydgard
0c4d4835ac DSP: Add cycles parameter to all Update functions in HLE, might be useful someday :p A couple more signatures for the idle skip detector. no big functional changes
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2932 8ced0084-cf51-0410-be5f-012b33b47a6e
2009-04-08 18:36:53 +00:00
nakeee
fff663e8c7 Attempt to move mixer to audio common, it's a bit more complicated than I expected
so please check I didn't break anything in hle



git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2756 8ced0084-cf51-0410-be5f-012b33b47a6e
2009-03-26 09:29:14 +00:00
Shawn Hoffman
2301d072a6 nakee's new logmanager. added a console window for windows builds (prints to parent console on non-win32). also fix some random wxw bugs: main window's position is saved when using debugger, disabling windows from the tools menu are saved settings, some other small fixes
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2675 8ced0084-cf51-0410-be5f-012b33b47a6e
2009-03-18 17:17:58 +00:00
Sonicadvance1
d9d711d9d5 Code within #if 0 that if enabled, makes more mail come with zelda uCodes.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2671 8ced0084-cf51-0410-be5f-012b33b47a6e
2009-03-17 08:58:52 +00:00
XTra.KrazzY
a85f92c8d1 Unnecessary PanicAlert removal
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2156 8ced0084-cf51-0410-be5f-012b33b47a6e
2009-02-08 19:20:49 +00:00
XTra.KrazzY
c8526c7be1 1. Fixed RTC in both Wii and GC (added Wii epoch bias, notify me if it isn't good for your PC and I'll revert it).
2. Added some Zelda UCode HLE Documentation and changed the way it handles mail, also fixed a bug there.

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2155 8ced0084-cf51-0410-be5f-012b33b47a6e
2009-02-08 19:17:51 +00:00
nakeee
7219bcd4d5 This is a joined work of XK and me on improving the HLE plugin interface.
It allows run time selection of backends (AOSound, DSound and NullSound).
It replaces the DSP_NULL plugin (works even better!)
It also includes improved thread handling on asound, and using some common functions on both
asound and windows.


git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2027 8ced0084-cf51-0410-be5f-012b33b47a6e
2009-01-29 00:57:55 +00:00
bushing
901fe7c00f set svn:eol-style=native for Plugins/**.cpp
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@1441 8ced0084-cf51-0410-be5f-012b33b47a6e
2008-12-08 05:25:12 +00:00
nakeee
418f8a2b23 opengl scons compile fix on linux
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@990 8ced0084-cf51-0410-be5f-012b33b47a6e
2008-10-28 14:19:28 +00:00
XTra.KrazzY
b7e9a988f7 Started work on HLE Zelda UCode.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@853 8ced0084-cf51-0410-be5f-012b33b47a6e
2008-10-13 23:00:35 +00:00
Sonicadvance1
d98c60a0da Fix compiling in Linux for the most part
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@732 8ced0084-cf51-0410-be5f-012b33b47a6e
2008-09-29 21:22:44 +00:00
hrydgard
e4785df7a2 Ban compression of Wii images until it has been tested. All sorts of minor cleanup.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@669 8ced0084-cf51-0410-be5f-012b33b47a6e
2008-09-24 19:10:56 +00:00