Constrain the Gravis UltraSound's playback frequency selection
The Gravis UltraSound emulator generates undistorted stereo output at playback frequency of 11025 Hz and powers-of-two multiples greater, such 22050 Hz and 44100 Hz. At frequencies that are not multiples of 11025 Hz; such as 49716, 48000, 32000, 16000, and 8000 Hz; playback is distorted by the addition of ringing and stereo separation is lost. This commit constrains the configurable GUS playback frequencies to 44100, 22050, and 11025 Hz. It also corrects the spelling of "UltraSound", which was previously spelled "Ultrasound".
This commit is contained in:
parent
f7745adf92
commit
2d76132a8b
1 changed files with 8 additions and 7 deletions
|
@ -640,27 +640,28 @@ void DOSBOX_Init(void) {
|
|||
|
||||
secprop=control->AddSection_prop("gus",&GUS_Init,true); //done
|
||||
Pbool = secprop->Add_bool("gus",Property::Changeable::WhenIdle,false);
|
||||
Pbool->Set_help("Enable the Gravis Ultrasound emulation.");
|
||||
Pbool->Set_help("Enable the Gravis UltraSound emulation.");
|
||||
|
||||
Pint = secprop->Add_int("gusrate",Property::Changeable::WhenIdle,44100);
|
||||
Pint->Set_values(rates);
|
||||
Pint->Set_help("Sample rate of Ultrasound emulation.");
|
||||
const char *gusrates[] = {"44100", "22050", "11025", 0};
|
||||
Pint->Set_values(gusrates);
|
||||
Pint->Set_help("The playback frequency of the Gravis UltraSound.");
|
||||
|
||||
Phex = secprop->Add_hex("gusbase",Property::Changeable::WhenIdle,0x240);
|
||||
Phex->Set_values(iosgus);
|
||||
Phex->Set_help("The IO base address of the Gravis Ultrasound.");
|
||||
Phex->Set_help("The IO base address of the Gravis UltraSound.");
|
||||
|
||||
Pint = secprop->Add_int("gusirq",Property::Changeable::WhenIdle,5);
|
||||
Pint->Set_values(irqsgus);
|
||||
Pint->Set_help("The IRQ number of the Gravis Ultrasound.");
|
||||
Pint->Set_help("The IRQ number of the Gravis UltraSound.");
|
||||
|
||||
Pint = secprop->Add_int("gusdma",Property::Changeable::WhenIdle,3);
|
||||
Pint->Set_values(dmasgus);
|
||||
Pint->Set_help("The DMA channel of the Gravis Ultrasound.");
|
||||
Pint->Set_help("The DMA channel of the Gravis UltraSound.");
|
||||
|
||||
Pstring = secprop->Add_string("ultradir",Property::Changeable::WhenIdle,"C:\\ULTRASND");
|
||||
Pstring->Set_help(
|
||||
"Path to Ultrasound directory. In this directory\n"
|
||||
"Path to UltraSound directory. In this directory\n"
|
||||
"there should be a MIDI directory that contains\n"
|
||||
"the patch files for GUS playback. Patch sets used\n"
|
||||
"with Timidity should work fine.");
|
||||
|
|
Loading…
Add table
Reference in a new issue