1
0
Fork 0

New mixer config options and removed some

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@1910
This commit is contained in:
Sjoerd van der Berg 2004-08-23 08:24:07 +00:00
parent 7bbec56bed
commit a10d8f9bf0

View file

@ -16,7 +16,7 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
/* $Id: dosbox.cpp,v 1.74 2004-08-13 19:43:02 qbix79 Exp $ */
/* $Id: dosbox.cpp,v 1.75 2004-08-23 08:24:07 harekiet Exp $ */
#include <stdlib.h>
#include <stdarg.h>
@ -91,6 +91,7 @@ void IPX_Init(Section*);
#if C_DIRECTSERIAL
void DIRECTSERIAL_Init(Section* sec);
#endif
void SID_Init(Section* sec);
void PIC_Init(Section*);
void TIMER_Init(Section*);
@ -266,6 +267,7 @@ void DOSBOX_Init(void) {
secprop->Add_bool("nosound",false);
secprop->Add_int("rate",22050);
secprop->Add_int("blocksize",2048);
secprop->Add_int("prebuffer",10);
MSG_Add("MIXER_CONFIGFILE_HELP",
"nosound -- Enable silent mode, sound is still emulated though.\n"
@ -273,6 +275,7 @@ void DOSBOX_Init(void) {
" probably lower their sound quality.\n"
"blocksize -- Mixer block size, larger blocks might help sound stuttering\n"
" but sound will also be more lagged.\n"
"prebuffer -- How many milliseconds of data to keep on top of the blocksize.\n"
);
secprop=control->AddSection_prop("midi",&MIDI_Init);
@ -300,7 +303,6 @@ void DOSBOX_Init(void) {
secprop->Add_int("dma",1);
secprop->Add_int("hdma",5);
secprop->Add_bool("mixer",true);
secprop->Add_int("sbrate",22050);
secprop->Add_string("oplmode","auto");
secprop->Add_int("oplrate",22050);
@ -308,7 +310,6 @@ void DOSBOX_Init(void) {
"type -- Type of sblaster to emulate:none,sb1,sb2,sbpro1,sbpro2,sb16.\n"
"base,irq,dma,hdma -- The IO/IRQ/DMA/High DMA address of the soundblaster.\n"
"mixer -- Allow the soundblaster mixer to modify the dosbox mixer.\n"
"sbrate -- Sample rate of soundblaster emulation.\n"
"oplmode -- Type of OPL emulation: auto,cms,opl2,dualopl2,opl3.\n"
" On auto the mode is determined by sblaster type.\n"
"oplrate -- Sample rate of OPL music emulation.\n"