Commit Graph

34 Commits

Author SHA1 Message Date
libretroadmin
6a31522981 Get rid of mostly dead code 2022-06-20 06:07:40 +02:00
jdgleaver
046637ba73 Expose internal audio RF filter option 2022-04-05 13:45:20 +01:00
NewRisingSun
53bca8e9bf Rewrite mapper 134 emulation for simplicity. Fix WRAM-using games. Remove leftover code from mmc3.c. Initialize the Frame IRQ register only on power-on reset, not soft-reset, which is necessary for two multicarts. 2022-02-19 12:53:26 +01:00
twinaphex
a918869c18 Cut down on stdio.h includes 2021-11-02 17:25:04 +01:00
Autechre
aa4615c417 Revert "some cleanups" 2021-06-05 15:05:07 +02:00
negativeExponent
46ca02a206 Move settings-related vars to FSettings struct
- Just some more cleanups
2021-06-02 04:18:53 +08:00
Michael Forney
066899eaff Remove extraneous semicolons at top-level
These are unnecessary and not strictly allowed in ISO C.
2020-11-10 19:23:34 -08:00
negativeExponent
9f46517792 Fix some warnings reported from LGTM 2020-10-26 07:41:48 +08:00
negativeExponent
2ae14b75de APU: Move duty cycle swapping during apu writes 2020-10-26 06:35:58 +08:00
negativeExponent
99c0d8351f Fix warnings [-Wmissing-field-initializers] 2020-10-21 20:35:05 +08:00
retro-wertz
26f2dcafe2 Try to fix PS3 save state issue.
In the past while fixing state problems i Wii, this section was the last one i found to be a problem as well. Ignoring this state variable fixes the last Wii state loading problem. PS3 has recently been reported as having state problems and could be similar issue. So, lets just ignore this state variable for all big-endian platforms.
2019-07-17 05:55:37 +08:00
retro-wertz
b6c251b7b2 Cleanup (#248)
* Silence some clang warnings

* Cleanup input and turbo functions

* Update apu pulse' swap duty cycle
2018-12-23 08:46:17 -06:00
retro-wertz
b09a060ae6 Wii related updates for save state fixes/workarounds (#246)
* Wii: Fix uninitialized save state size causing load state problems

- Issue origially from Wii and possibly affects similar devices where
retroarch and the core are one program. The problem was that the
serialize size was not reset when you change game, causing the last
serialized size to be carried over to the next game loaded causing save
state issues due to change in size. Initializing this variable during
retro_init() seems enough for most of the games.

- In this same observation, also initialized some variables in a similar
way.

- also exluded a variable used for sound state that was added for smooth
sound after load state which causes similar loading issues as well.

- default sample rate has been lowered to 32K as well as to minimize
some stuttering for these devices, while maintaining 48K sample rate for
others.

- Some comments are added to modified section as necessary.

* Add workaround for save state issue in Wii with expansion audio

- Some mappers are not loading states as well. Seems to affect those
that are using expansion audio. some of these mappers(bandai, mmc5,
namco106), the state variables has to be expanded so that it will
load states fine with big endian while others (vrc6, vrc7 sunsoft), some
variables that were added for smoother audio during load state has been
removed.

- This does not guarantee though that other mappers might not have
similar incompatibilities after loading a state but so far, some of the
most common roms in each mapper has been tested to load fine.

* FDS: Expand state variables for big endian compatibility

* FDS: Change OSD label from Disk 0 to Disk 1... when switching disks

- Minor osd label change that now shows Disk 1 of (# of disks) instead
of just Disk 0 Side nth.
2018-12-14 20:23:43 -06:00
retro-wertz
fd5c95e60c Fix pulse channel fails to clock lenght counter when silenced
- Backported implementation from Mednafen-NES
- Reference test roms:
https://forums.nesdev.com/viewtopic.php?t=15346
https://github.com/christopherpow/nes-test-roms/tree/master/apu_mixer
2018-12-08 19:56:31 +08:00
retro-wertz
3b2511a8fe Fix APU IRQ inhibit flag $4017 and dmc 2018-12-08 11:35:04 +08:00
retro-wertz
68c5289726 Update apu sweep unit
- http://wiki.nesdev.com/w/index.php/APU_Sweep
- APU sweep test roms:
   https://forums.nesdev.com/viewtopic.php?t=219&p=1403
- Fixes R.C. Pro AM II intro music
2018-12-08 08:42:33 +08:00
hizzlekizzle
64bccb470a Revert "Fix RC Pro Am II intro music and pulse phase reset behavior (#241)" (#242)
This reverts commit 5bc56f786b.
2018-12-05 13:25:25 -06:00
retro-wertz
5bc56f786b Fix RC Pro Am II intro music and pulse phase reset behavior (#241)
References:
- RC Pro Am II, intro music square channels are wrong.
- apu_phase_reset.nes -
http://forums.nesdev.com/viewtopic.php?f=2&t=15346
2018-12-05 10:45:24 -06:00
retro-wertz
1993f31352 Fix wrong info in some comments 2018-12-05 15:09:13 +08:00
retro-wertz
b5803e0e1d c89 compliant? (#237)
* Replace C++ comments into  C comments

* Move INLINE out of Makefile.common, move to fceu-types.h

An INLINE define is still existing in Makefile.common for msvc (dont
have a way to to test that). Moved the rest into fceu-types.h using the
one already existing from emu2413.h.

* Increase maximum volume for apu channels
2018-12-03 20:25:17 -06:00
retro-wertz
829a7552f1 Audiostuff (#236)
* Add option to enable/disable audio channels

Audio options are backports from FCEUX. Options are set as on/off toggle for each apu channel.

Compile with DEBUG=1 to see options.

* Add missing audio state vars, fix for hq audio when using runahead

* Additional checks for save ram (battery)

* Cleanup

* Update libretro header
2018-11-29 19:22:36 -06:00
twinaphex
02840d9cff C89_BUILD fixes 2018-03-20 16:07:46 +01:00
Dwedit
ef6e70075f corrected non-functional typo 2018-03-16 23:25:48 -05:00
Dwedit
a76897a920 More variables in sound state, plus first 32 words of sound buffer (needed for filtering) 2018-03-16 23:17:37 -05:00
Dwedit
b9df5f188c Smooth sound after loading state
Moved function-level static variables outside of functions and renamed them
2018-03-15 19:50:46 -05:00
retro-wertz
23a5188d63 Fix mistake
rookie mistake :(
2017-10-18 20:14:15 +08:00
retro-wertz
52c8155dee Use C-comment style 2017-10-15 03:13:11 +08:00
retro-wertz
2cdf32300b Add core option Swap Duty Cycles 2017-10-05 14:43:20 +08:00
retro-wertz
baf3957220 Corrected PAL noise frequency table 2017-09-02 09:12:42 +08:00
retro-wertz
feed492569 [overclock] allow choosing between postrender and vblank extra scanlines 2017-08-24 20:58:04 +08:00
retro-wertz
016a68c018 Silence stuffs we dont use in libretro 2017-05-08 10:10:24 +08:00
twinaphex
417b8c6022 Add overclocking - backported from FCEUX with mods 2016-02-22 18:36:09 +01:00
twinaphex
21aa0759da Remove unused files 2015-08-06 13:34:20 +02:00
twinaphex
7e6caac57d Initial commit - http://sourceforge.net/p/fceumm/code/160/ 2014-03-30 22:15:17 +02:00