dosbox-staging:svn/r4000-nrs-vgm-patch-1

Last commit made on 2023-10-05
Get this branch:
git clone -b svn/r4000-nrs-vgm-patch-1 https://git.launchpad.net/dosbox-staging

Branch merges

Branch information

Name:
svn/r4000-nrs-vgm-patch-1
Repository:
lp:dosbox-staging

Recent commits

498e4ab... by kcgen <email address hidden>

Fix a pointer-comparison in nullmodem

7694217... by NewRisingSun <email address hidden>

Capture FM, DAC, and PCSpeaker to VGM

Notes from NewRisingSun2 on the vgmrips.net forum 2017-01-05, 3:51:28:

Subject: DOSBox-VGM

Attached find my patch to DOSBox which directly logs to .VGM
files instead of .DRO files. The program logs writes to the
Tandy 1000/PCjr's SN76496 chip, the Game Blaster (SAA1099), the
OPL2/Dual OPL2/OPL3 chip, the PC speaker (via an AY-3-8910),
and the Sound Blaster and Tandy SL/TL/RL DACs (via an YM2612).
DAC and PC speaker are only logged if "capturepcm" and
"capturespeaker" in the [dosbox] section of DOSBox.conf are set
to "true", respectively; they are "false" by default, and can
only be changed from the config file, not within a DOSBox
session from the command line. I have only added PC speaker
support for that one game (4D Boxing) that uses it as a fourth
PSG channel, but theoretically one could also use it to create
a .VGM pack of scratchy sound effects from Commander Keen
episodes 1-3. Similarly, I have added DAC logging only for the
few games that use it for drums; therefore, it only works with
single-cycle 8-bit transfers when the whole sample in memory at
the time that the DMA transfer is started (i.e. no
double-buffering).

The source code diff also incorporates my correction to the
Game Blaster base clock, my patch adding support for Tandy 1000
direct DAC writes, and my patch correcting the interpretation
of SN76496 frequency register value 0. As mentioned in one of
these discussion threads, when using the Tandy DAC, "sbtype="
should be set to "none" in the [sblaster] section of
DOSBox.conf. The source code diff is against SVN r4000, as
revisions r4002 and r4003 from two days ago made some changes
to the mixer code that break my Tandy DAC code. Just download
SVN r4003 and replace mixer.cpp and mixer.h with those from
r4000. As I am using a few C++14 features, before compiling,
you need to re-run "configure" with the CPPFLAGS="-std=gnu++14"
option, e.g.

Code:

./configure --enable-core-inline LDFLAGS="-static-libgcc \
            -static-libstdc++ -s" CPPFLAGS="-std=gnu++14"

The default key to start capturing is still Ctrl+Alt+F7; even
the name in the key bindings ("mapper") file is still
"hand_caprawopl", so I wouldn't have to change my key binding
file. I tried to start logging in the middle of a 4-OP FM song,
and the playback still seemed correct, so I hope I did the
register cache business correctly, and I have taken care that
no OPL register writes are filtered (i.e. no implicit vgm_cmp).

Imported-from: https://vgmrips.net/forum/viewtopic.php?t=2585#p8181

Signed-off-by: kcgen <email address hidden>

7cd00b3... by ripsaw8080 <email address hidden>

Implement an obscure behavior of the VGA DAC, similar to what was done for Star Control 2. Fixes wrong colors in Planet Soccer/Football.

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4000

a3345ee... by Peter Veenstra <email address hidden>

Spaces in LOG_MSG and some at the end of the line.

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3999

b9b9e2c... by Sjoerd van der Berg <email address hidden>

Fix some issues with debugger after last patch

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3998

397e38a... by Peter Veenstra <email address hidden>

Improve readability of auto cycles information bit.

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3997

07f461d... by Peter Veenstra <email address hidden>

Clip to boundaries when there are no suggested values for Prop_int. Revert r3986 as this commit fixes the problem in a different way.

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3996

cadf69a... by ripsaw8080 <email address hidden>

Fix debugger "running" status message when resuming emulation with F5.

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3995

eefd825... by Sjoerd van der Berg <email address hidden>

Add wjp's improved breakpoint handling to the debugger
Rewrite the order of the debug help list so the keys come last

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3994

169ca61... by Sjoerd van der Berg <email address hidden>

fix for 256 color encoding in zmbv.dll codec patch by Avery Lee

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3993