toxieainc
4c727abdc8
change all INT16 mixing/intermediate clamping to floats
...
also fixes 3 bugs:
1) mpeg right channel volume was always using the left channel volume, too
2) too high MusicVolume setting was not clamped to 0..200
3) too high SoundVolume setting was not clamped to 0..200
2022-11-06 13:00:13 -08:00
Ian Curtis
a742a73772
njz3: Fix sound volume with new quadrophonic audio code
2022-06-19 16:15:54 +00:00
Matthew Daniels
0c47ac831a
Increase MIDI FIFO buffer size for SCSP; should prevent FIFO overflows
...
Also use similar macro for DSB FIFO buffer
2021-11-30 23:01:37 +00:00
Matthew Daniels
9ffce8b92a
Getting rid of most of the includes from Supermodel.h; each file now explicitly includes the header files it needs.
...
Making changes to a header file should no longer force the entire project to recompile.
2021-11-22 17:15:06 +00:00
Matthew Daniels
94d8a1b22d
Increase size of DSB2 FIFO buffer; fixes Sega Rally 2 music occasionally not switching or fading out
2021-10-26 22:47:24 +00:00
SpinDizzy
020e2d1b32
DSB2 clock speed from 4MHz to 11MHz.
2021-03-13 08:17:11 +00:00
SpinDizzy
de470aaf52
Fixed cycle counting overflow that was causing DSB2 to halt execution.
2021-03-07 10:12:37 +00:00
SpinDizzy
46b1de2238
DSB2 IRQ 2 now fires at 1KHz rather than once per frame, improving
...
music timing in Daytona USA 2 and Sega Rally 2. DSB1 CPU timing
increased from 1MHz to 4MHz, improving music fade timing in Scud Race.
Thanks to gm_matthew for these discoveries.
2021-03-03 15:30:19 +00:00
Ian Curtis
8aa476aeeb
Previous mpeg audio code worked for me in debug mode, but the release build had some serious corruption issues when being built in visual studio. Replaced the old spaghetti code with a more modern implementation.
2019-02-21 14:56:25 +00:00
SpinDizzy
bb89bc8e54
Refactor code from previous svn768 (Note : break old savestate compatibility)
2019-02-05 10:03:50 +00:00
Ian Curtis
90faeafbc4
Fix the audio in sega rally2. The game has packed separate tracks into the left and right audio channels. Selecting the correct track fixes the garbled mess. (Spindizzi)
2019-02-01 21:02:02 +00:00
Bart Trzynadlowski
f34e25dfc7
Massive internal change: removed CConfig object and replaced it with a hierarchical config object system (Util::Config::Node). Games are now defined in an XML file. Hopefully I didn't break too many things :/
2017-03-27 03:19:15 +00:00
Bart Trzynadlowski
198a469ff7
Created IEmulator interface, renamed CBus to IBus and CPCIDevice to IPCIDevice. Frames now rendered when emulator paused.
2016-04-10 03:42:41 +00:00
Bart Trzynadlowski
c0f679479a
Added virtual destructor to CDSB
2016-04-02 21:35:06 +00:00
Bart Trzynadlowski
c5d0cb0d97
Added front/rear speaker balance (actually the master/slave SCSP balance). Balance setting is stored in CSoundBoardConfig and can be set on the command line (-balance) or config file (Balance). Valid range is 100 (front speaker volume doubled, rear muted) to -100. The default is 0, both sets at full volume. Balance is applied in the SCSP core before overall sound and music volume settings.
2012-02-09 07:58:07 +00:00
Nik Henson
58954ee4cc
Small updates:
...
- added methods to CModel3 to access sound board and drive board
- added methods to CSoundBoard to access 68K and DSB (if attached)
- added methods to CDSB1 & CDSB2 to access Z80 & 68K respectively
- small code tweak in DriveBoard.cpp
- comment tweaks in Model3.h & Model3.cpp
2011-09-15 21:10:38 +00:00
Bart Trzynadlowski
2f5bf43bda
Updated copyright information and added headers to all remaining files except debugger.
2011-09-14 19:08:43 +00:00
Bart Trzynadlowski
11d1d61bc2
- Removed BOOL and replaced it with native C++ type, bool.
...
- Removed TRUE and FALSE, changed to 'true' and 'false' keywords.
2011-09-08 06:34:18 +00:00
Bart Trzynadlowski
d318efe58c
- Program settings are now managed by the CConfig class.
...
- Moved Logger.h to OSD/, cleaned up comments.
- Command line and config file parsing have been rewritten.
- Began replacing C standard library headers with C++ versions (eg. stdio.h -> cstdio). I think I got most of them, but not all.
2011-08-19 20:43:07 +00:00
Bart Trzynadlowski
12e4d82471
- DSB2 save state support.
...
- krom made a minor optimization of the byte reverse routines in ppc.cpp.
2011-08-10 05:35:42 +00:00
Bart Trzynadlowski
52cd9d834b
Save state support for 68K, Z80, sound board, DSB1, and MPEG playback.
2011-08-09 18:16:06 +00:00
Bart Trzynadlowski
6a6788952c
- Fixed Daytona 2 Advertise song. DSB2 MPEG state machine can now begin playing songs from state ST_GOTA4.
...
- krom: Minor fixes to Main.cpp to support wider ROM set names (up to 9 chars) and compilation under MinGW.
2011-08-03 04:29:33 +00:00
Bart Trzynadlowski
ddd6fa92ef
- Improved 68K interface. Now supports context switching.
...
- CSoundBoard is not derived from CBus.
- Optimized sound board memory handlers (now using switch statements).
- Added DSB emulation (based on R. Belmont's M1 source code).
- Improved ROM loading: only unique ROMs (those not shared amongst games) are used to identify games. The ROM loader will no longer get confused as easily.
- General cleanup here and there, removed unused Render.h file.
2011-07-31 02:37:31 +00:00