Commit graph

455 commits

Author SHA1 Message Date
Bobby Smiles
6d44f153a1 Rework CLEARBUFF / alist_clear.
Three modifications:
-CLEARBUFF check for null sized buffer and exit early in that case
-CLEARBUFF process chunks of 16 bytes
-There should be no constrains on dmem alignment, therefore alist_clear should handle unaligned
accesses.
2014-02-23 16:52:53 +01:00
Bobby Smiles
45af55c656 Implement SEGMENT audio command. 2014-02-23 16:52:44 +01:00
Bobby Smiles
ac6c14f501 Use real dmem address ucode1. 2014-02-23 16:18:39 +01:00
Richard Goedeken
d55c2d91fa Merge pull request #14 from bsmiles32/plugin_refac
Plugin refac
2014-02-19 21:29:52 -08:00
Bobby Smiles
54f817a86d Put hle_execute proto into a proper header file. 2014-02-19 09:04:51 +01:00
Bobby Smiles
0a9e243204 Make unknown task dumping optional at compile time.
This functionality is not needed by the normal user and can introduce unwanted dependencies on
files. It can be enabled at compile time using -DENABLE_TASK_DUMP or Makefile var DUMP=1.
2014-02-19 05:32:33 +01:00
Bobby Smiles
806b0c07ce Use bool where appropriate. 2014-02-17 09:01:20 +01:00
Bobby Smiles
286614a3c1 Rename rsp status flags defines. 2014-02-17 08:53:16 +01:00
Bobby Smiles
ed81030162 Rename ucode*.c files 2014-02-17 08:44:47 +01:00
Bobby Smiles
24de686fb1 Move clamp_s16 to arithmetics.h 2014-02-17 02:27:50 +01:00
Bobby Smiles
94d8f03c85 Remove superfluous headers 2014-02-17 02:19:28 +01:00
Bobby Smiles
0923af8d68 Isolate memory access code. 2014-02-17 02:06:49 +01:00
Bobby Smiles
b680a18fda Rename rsp to g_RspInfo 2014-02-17 01:21:09 +01:00
Bobby Smiles
df010f161b Isolate plugin specific code. 2014-02-17 01:14:31 +01:00
Richard Goedeken
edc7dd7d81 Merge pull request #13 from bsmiles32/musyx_v2
Implement parts of MusyX ucode (v2).
2014-02-09 21:38:45 -08:00
Bobby Smiles
5586e9ca58 Implement parts of MusyX ucode (v2).
The second version of MusyX ucode is only found in IndianaJones and BattleForNaboo.
NOTE: the proposed implementation is not complete but seems enough to improve user experience.
2014-02-09 03:40:21 +01:00
Richard Goedeken
abe172dcf2 Merge pull request #12 from bsmiles32/musyx_temporary_fix
Temporary fix for IndianaJones and BattleForNaboo.
2014-02-06 21:55:42 -08:00
Bobby Smiles
8c022c1bd4 Temporary fix for IndianaJones and BattleForNaboo.
IndianaJones and BattleForNaboo use a different version of musyx ucode.
In this later version, some data structures have changed, which makes it incompatible with the
previous version (and cause the emulator to crash...).
This patch avoid the emulator crash by not handling the task.
Proper fix requires more reverse engineering effort.
2014-02-06 19:40:49 +01:00
Richard Goedeken
0099c91e62 Merge pull request #11 from bsmiles32/small_fixes
Small fixes
2014-02-03 22:14:41 -08:00
Bobby Smiles
151fca618b Fix regression introduced by commit 3921889f3b
adpcm_compute_residuals should honor the count parameter.
2014-02-03 23:58:01 +01:00
Bobby Smiles
51f9dc2dd4 Refactor some mixing routines 2014-02-01 10:57:13 +01:00
Bobby Smiles
6c5a8e2fd8 Fix overflow with ramp value stepping
see bsmiles32/mupen64plus-rsp-hle@032b726#commitcomment-5241631
2014-02-01 10:56:58 +01:00
Bobby Smiles
6aa918ca43 Fix: acmd dispatching discard most significant bit 2014-02-01 10:42:23 +01:00
littleguy77
552bab6f81 build: Add android makefile. 2014-01-28 17:38:54 -05:00
Richard Goedeken
1cc1ceb74a fix windows build problem 2014-01-26 09:55:51 -08:00
Richard Goedeken
f4e723d203 Merge pull request #10 from bsmiles32/audio_improvements
Audio improvements
2014-01-24 22:19:08 -08:00
Bobby Smiles
0004268525 Dehardcode various magic numbers. 2014-01-24 22:37:39 +01:00
Bobby Smiles
75478e6d36 Replace C++ comments with C comments 2014-01-24 22:24:37 +01:00
Bobby Smiles
db692a30c0 Implement RESAMPLE_ZOH audio command.
It fixes the garbled sound when switching from/to headset mode in 1080 Snowboarding.
2014-01-24 22:19:51 +01:00
Bobby Smiles
41f50000bb Implement POLEF audio command.
It fixes the ramping sound during PilotWings intro.
2014-01-24 22:01:00 +01:00
Bobby Smiles
d85e978bb8 Implement audio command #16 for NEAD ucodes.
It fixes some garbled sound at the start of a race in Wave Race for instance.
2014-01-24 21:20:27 +01:00
Bobby Smiles
3837e75ad7 Split ucode2 into 11 different versions. 2014-01-24 20:59:20 +01:00
Bobby Smiles
bdd2059ad8 Split ucode3 into 5 different versions. 2014-01-24 20:59:20 +01:00
Bobby Smiles
8e23cd4ace Split ucode1 into 3 different versions. 2014-01-24 20:59:20 +01:00
Richard Goedeken
fb55d79041 Merge pull request #9 from bsmiles32/alist_refactoring
Alist refactoring
2014-01-23 21:56:00 -08:00
Bobby Smiles
3f7ff35aad Remove dummy assignment. 2014-01-23 20:49:11 +01:00
Bobby Smiles
378f1b4980 BufferSpace doesn't need to be global anymore. 2014-01-23 20:49:11 +01:00
Bobby Smiles
dc65825033 Extract alist_filter logic. 2014-01-23 20:49:11 +01:00
Bobby Smiles
032b726efb Refactor alist_envmix_lin. 2014-01-23 20:49:11 +01:00
Bobby Smiles
4b0378f642 Refactor alist_envmix_nead. 2014-01-23 20:49:11 +01:00
Bobby Smiles
7ed91e5fba Refactor alist_envmix_exp. 2014-01-23 20:48:57 +01:00
Richard Goedeken
7a9d702eaf Merge pull request #8 from bsmiles32/fix_setvol
Fix regression introduced by commit f1707b5
2014-01-20 22:12:31 -08:00
Bobby Smiles
99cd087579 Fix regression introduced by commit f1707b5 2014-01-20 19:56:09 +01:00
Richard Goedeken
9315b9f34d Merge pull request #7 from bsmiles32/ucode_separation
First pass of audio ucodes refactoring.
2014-01-19 09:14:49 -08:00
Bobby Smiles
f519a35e12 Refactor alist duplicate2. 2014-01-18 19:07:11 +01:00
Bobby Smiles
84d69b9ada Refactor alist interl2. 2014-01-18 18:54:35 +01:00
Bobby Smiles
0f24d6dd6f Refactor alist addmixer. 2014-01-18 18:42:58 +01:00
Bobby Smiles
433a570c05 Refactor alist hilogain. 2014-01-18 18:32:12 +01:00
Bobby Smiles
f695303e23 Fix: forgot a header for size_t. 2014-01-18 15:27:03 +01:00
Bobby Smiles
85a994cdc1 Update copyrights. 2014-01-18 15:21:24 +01:00