Richard Goedeken
24be9ace89
Merge pull request #24 from bsmiles32/msvc_fixes
...
Msvc fixes
2014-04-06 09:47:19 -07:00
Bobby Smiles
a5b4fc443a
Fix various warnings.
2014-04-05 12:53:53 +02:00
Bobby Smiles
8ccab927eb
Fix: declare variable at top of function.
2014-04-05 12:20:08 +02:00
Bobby Smiles
1010ec23c7
inline is not an available keyword in C for MSVC.
...
For MSVC, inline is only available in C++, not C.
In C we can use __inline (or __forceinline) instead.
2014-04-05 12:13:24 +02:00
Bobby Smiles
9f2b928503
Add stdbool support for msvc compilers.
2014-04-05 12:04:47 +02:00
Richard Goedeken
889a0707a5
Merge pull request #22 from bsmiles32/oups_ge
...
Fix: ramps step is 1/8 of rate
2014-04-03 21:41:34 -07:00
Bobby Smiles
497517d70a
Fix: ramps step is 1/8 of rate
2014-04-03 08:27:34 +02:00
Richard Goedeken
21f4ce94fc
Merge pull request #21 from bsmiles32/fix_ge
...
Implement GoldenEye envelope mixer audio command.
2014-04-02 22:05:38 -07:00
Bobby Smiles
fc81c1f3c0
Implement GoldenEye envelope mixer audio command.
...
It should fix issue 596 in our bug tracker.
2014-04-03 00:27:54 +02:00
Richard Goedeken
e723d08684
Merge pull request #20 from bsmiles32/naudio_02b0
...
Implement NAUDIO_02B0.
2014-03-20 22:12:16 -07:00
Richard Goedeken
274162db3c
Merge pull request #19 from bsmiles32/refactorings
...
Refactorings
2014-03-20 22:08:05 -07:00
Bobby Smiles
6823445ad9
Implement NAUDIO_02B0.
...
To implement NAUDIO_02B0, we emulate instructions located at 0x12b0 (inside SETVOL), which
overwrite lowest part of right rate.
Indeed, despite its address 0x02b0 (ie DMEM), SP can only execute in IMEM.
2014-03-19 23:16:11 +01:00
Bobby Smiles
ed30f87f4d
Refactor simple alist buffer accesses.
2014-03-19 21:13:05 +01:00
Bobby Smiles
8fb2604b80
Refactor memory functions.
2014-03-19 20:11:10 +01:00
Bobby Smiles
71c4f22bf8
Rename alist_internal.h into alist.h
2014-03-19 19:15:18 +01:00
Bobby Smiles
76ca3b014c
Regroup all ucode headers into a single header.
2014-03-19 19:14:10 +01:00
Bobby Smiles
2d44dcffb9
Move acmd parsing to alist_naudio
2014-03-19 18:35:10 +01:00
Bobby Smiles
67339fdcee
Move MP3 prototype into its own header.
2014-03-19 09:41:45 +01:00
Bobby Smiles
b5472454b0
Fix top comment
2014-03-19 09:35:06 +01:00
Bobby Smiles
b82e298dbf
Remove unneeded state variables.
2014-03-19 09:31:39 +01:00
Bobby Smiles
594fce4722
Use clamp_s16 where appropriate.
2014-03-19 09:16:29 +01:00
Richard Goedeken
2d28605585
Merge pull request #18 from bsmiles32/pedantic
...
Fix most warnings when compiling in pedantic mode.
2014-03-16 21:26:08 -07:00
Bobby Smiles
d751f58b3d
Fix most warnings when compiling in pedantic mode.
2014-03-14 17:22:02 +01:00
Richard Goedeken
1dc87131f2
Merge pull request #17 from bsmiles32/wextra_fixes
...
Wextra fixes
2014-03-11 17:52:49 -07:00
Bobby Smiles
7d0ba23f11
Fix unused parameter warning.
2014-03-10 21:55:54 +01:00
Bobby Smiles
c2c5080c7c
Fix: signed/unsigned comparison.
2014-03-10 21:21:56 +01:00
Bobby Smiles
4e82ac6f28
Fix: ignored qualifier warning from memory.h
2014-03-10 21:19:16 +01:00
Richard Goedeken
775522093f
Merge pull request #16 from bsmiles32/avoid_global_state
...
Avoid global state
2014-03-08 22:04:33 -08:00
Bobby Smiles
0be1e551c3
Rename main to hle.
2014-03-06 21:49:30 +01:00
Bobby Smiles
d6718933db
Rename plugin.h to hle_external.h
2014-03-06 21:36:51 +01:00
Bobby Smiles
4a3943a9fd
Move hle_t definition inside a private header.
2014-03-06 20:41:43 +01:00
Bobby Smiles
be21b61d9a
Allow to pass a user-defined object to "external" functions.
2014-03-06 10:19:01 +01:00
Bobby Smiles
9e482edcc9
Use {Verbose,Warn,Error}Message instead of DebugMessage.
...
By doing so, we can remove the dependency on m64p_type.h because of M64MSG_*.
Now the HLE core should be almost independant with respect to m64p plugin.
2014-03-06 10:19:01 +01:00
Bobby Smiles
0772f2cf42
Move emulator specific functions outside of hle_t.
2014-03-06 10:19:01 +01:00
Bobby Smiles
62e0ef5cfc
Remove RSPINFO requirement in hle core.
2014-03-06 10:19:01 +01:00
Bobby Smiles
4a8aad9f74
Remove global mutable variables from hle core.
...
All global mutable variables of the HLE core were regrouped into struct hle_t.
This allow third party to reuse the HLE core, without limiting them to a single process.
All they have to do is to declare another struct hle_t and pass it to hle_execute.
For mupen64plus plugin, a global hle_t is declared and passed to hle_execute.
I would have expected a small performance hit, because of the added level of indirection,
but it doesn't seem to be really noticeable for me.
2014-03-06 10:19:00 +01:00
Richard Goedeken
92caacffe8
Merge pull request #15 from bsmiles32/ucode1_and_other_refactoring
...
ucode1 work and other refactorings
2014-02-27 21:34:13 -08:00
Bobby Smiles
49ef4ad7fb
Rename NEAD alist based ucodes.
2014-02-23 20:59:38 +01:00
Bobby Smiles
019edad852
Regroup sfx_stage_v{1,2}
2014-02-23 20:32:24 +01:00
Bobby Smiles
e790ed7b4e
Regroup update_base_vol_v{1,2}
2014-02-23 19:37:21 +01:00
Bobby Smiles
deadc2507d
Fix copyright headers.
2014-02-23 19:29:23 +01:00
Bobby Smiles
4bce49daf9
Remove superfluous masking
2014-02-23 16:53:16 +01:00
Bobby Smiles
58aaf24d1d
POLEF count should be aligned to 16 bytes.
2014-02-23 16:53:16 +01:00
Bobby Smiles
f53324ef29
MIXER count should be aligned to 32 bytes.
2014-02-23 16:53:16 +01:00
Bobby Smiles
ae5e259559
INTERLEAVE count should be aligned to 16 bytes.
2014-02-23 16:53:15 +01:00
Bobby Smiles
4699b37e1e
LOADADPCM count should be aligned to 8 bytes.
2014-02-23 16:53:15 +01:00
Bobby Smiles
f3b477a6a3
DMEMMOVE process chunks of 16 bytes.
2014-02-23 16:53:15 +01:00
Bobby Smiles
021ccb552a
Rework LOADBUFF/SAVEBUFF.
2014-02-23 16:53:15 +01:00
Bobby Smiles
6cb68d6bd7
ADPCM: prefer align function over manual solution.
2014-02-23 16:53:15 +01:00
Bobby Smiles
5ed5042565
Rework RESAMPLE.
...
Modifications:
-there is an additional flag which can affect processing (not implemented)
-RESAMPLE outputs chunks of 16 bytes.
2014-02-23 16:53:15 +01:00