Set default value for SB16 dmatimer to 1000000 and updated docs.

This commit is contained in:
Volker Ruppert 2023-12-28 20:32:14 +01:00
parent 917ac4c79d
commit 29fbdb48da
4 changed files with 16 additions and 14 deletions

View File

@ -1026,14 +1026,15 @@ speaker: enabled=1, mode=sound, volume=15
# log: The file to write the sb16 emulator messages to.
# dmatimer:
# microseconds per second for a DMA cycle. Make it smaller to fix
# non-continuous sound. 750000 is usually a good value. This needs a
# reasonably correct setting for the IPS parameter of the CPU option.
# non-continuous sound. 1000000 is usually a good value. This needs a
# reasonably correct setting for the IPS parameter of the CPU option
# and also depends on the clock sync setting.
#
# Examples for output modes:
# sb16: midimode=2, midifile="output.mid", wavemode=1 # MIDI to file
# sb16: midimode=1, wavemode=3, wavefile="output.wav" # wave to file and device
#=======================================================================
#sb16: midimode=1, wavemode=1, loglevel=2, log=sb16.log, dmatimer=600000
#sb16: midimode=1, wavemode=1, loglevel=2, log=sb16.log, dmatimer=900000
#=======================================================================
# ES1370:

View File

@ -4653,7 +4653,7 @@ GUI methods (currently only used by the Carbon GUI).
Example:
<screen>
sb16: midimode=2, midifile=output.mid, wavemode=3, wavefile=output.wav
loglevel=2, log=sb16.log, dmatimer=600000
loglevel=2, log=sb16.log, dmatimer=900000
</screen>
<note><para>
The example is wrapped onto several lines for formatting reasons, but it
@ -4723,10 +4723,10 @@ are in the usual "property=value" format.
<listitem><para>
<option>dmatimer</option>:
Microseconds per second for a DMA cycle. Make it smaller to fix
non-continuous sound. 750000 is usually a good value. This needs a reasonably
non-continuous sound. 1000000 is usually a good value. This needs a reasonably
correct setting for the <command>ips</command> parameter of the
<link linkend="bochsopt-cpu-ips">cpu option</link>. It is possible to adjust the
dmatimer value at runtime.
<link linkend="bochsopt-cpu-ips">cpu option</link> und also denpends on the
clock sync setting. It is possible to adjust the dmatimer value at runtime.
</para></listitem>
</itemizedlist>
</para>

View File

@ -1,5 +1,5 @@
.\"Document Author: Timothy R. Butler - tbutler@uninetsolutions.com"
.TH bochsrc 5 "14 Dec 2023" "bochsrc" "The Bochs Project"
.TH bochsrc 5 "28 Dec 2023" "bochsrc" "The Bochs Project"
.\"SKIP_SECTION"
.SH NAME
bochsrc \- Configuration file for Bochs.
@ -1121,10 +1121,11 @@ loglevel:
dmatimer:
Microseconds per second for a DMA cycle. Make it smaller
to fix non-continuous sound. 750000 is usually a good
to fix non-continuous sound. 1000000 is usually a good
value. This needs a reasonably correct setting for
the IPS parameter of the CPU option. It is possible to
adjust the dmatimer at runtime.
the IPS parameter of the CPU option and also depends on
the clock sync setting. It is possible to adjust the
dmatimer value at runtime.
Examples for output modes:
sb16: midimode=2, midifile="output.mid", wavemode=1 # MIDI to file

View File

@ -2,7 +2,7 @@
// $Id$
/////////////////////////////////////////////////////////////////////////
//
// Copyright (C) 2001-2021 The Bochs Project
// Copyright (C) 2001-2023 The Bochs Project
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
@ -104,8 +104,8 @@ void sb16_init_options(void)
"dmatimer",
"DMA timer",
"Microseconds per second for a DMA cycle.",
0, BX_MAX_BIT32U,
0);
100000, BX_MAX_BIT32U,
1000000);
bx_list_c *deplist = new bx_list_c(NULL);
deplist->add(midimode);