joncampbell123 / dosbox-x

DOSBox-X fork of the DOSBox project
GNU General Public License v2.0
2.75k stars 381 forks source link

Issue with no sound for wolf 3d? #2014

Open DOOMMARINE117 opened 3 years ago

DOOMMARINE117 commented 3 years ago

Please describe your question. A clear and concise description of what your question is. Ex. How do I [...]

i had to restore my computer cause of stupid elder scrolls 3 morrowind keeps givign me issues when installing it.

but, back to topic.

is nosound suppose to be false?

im assuming i can change that to true?

i have overlay on as output.

so would nosound be changed to true?

Wengier commented 3 years ago

With nosound=false (default), DOS programs and games can make sound from the a Sound Blaster card or so. If you change to true, then silent mode will be enabled for them. What problem do you have in such case?

DOOMMARINE117 commented 3 years ago

With nosound=false (default), DOS programs and games can make sound from the a Sound Blaster card or so. If you change to true, then silent mode will be enabled for them. What problem do you have in such case?

when i load the game. the sound is empty. the game works. just no sound.

i have the blocksize at 8192.

joncampbell123 commented 3 years ago

Does sound work if you reduce the cycle count?

Wolfenstein 3D Sound Blaster/Adlib support is known to fail if the 100 I/O reads in the detect code are too fast, because it finishes before the OPL2/OPL3 finishes the timer test.

joncampbell123 commented 3 years ago

This is what I'm referring to.

https://github.com/id-Software/wolf3d/blob/master/WOLFSRC/ID_SD.C#L448

Wolf3D assumes 100 I/O reads are slow enough to delay until the OPL has finished the timer test.

DOOMMARINE117 commented 3 years ago

This is what I'm referring to.

https://github.com/id-Software/wolf3d/blob/master/WOLFSRC/ID_SD.C#L448

Wolf3D assumes 100 I/O reads are slow enough to delay until the OPL has finished the timer test.

oh really? setting them too high can cause issues?

joncampbell123 commented 3 years ago

A cycle count that's too high, or any configuration that makes I/O too fast, causes Wolf3D to fail Adlib detect.

For some reason, the game thinks that if the Adlib is not present, then neither is the Sound Blaster.

joncampbell123 commented 3 years ago

My mistake, that was the Sound Blaster detect. But that code has the same bug as the Adlib detect.

Here's how it detects Adlib: https://github.com/id-Software/wolf3d/blob/master/WOLFSRC/ID_SD.C#L1580

DOOMMARINE117 commented 3 years ago

My mistake, that was the Sound Blaster detect. But that code has the same bug as the Adlib detect.

Here's how it detects Adlib: https://github.com/id-Software/wolf3d/blob/master/WOLFSRC/ID_SD.C#L1580

interesting. so sounds like i should not be messing with the sound settings then. if aiming to high. lol. well i change it back now all works.

as for smooth settings which one is the best? like graphics wise?

joncampbell123 commented 3 years ago

Wolf3D is perfectly happy with a cycle count of about 8000-10000. I remember back in the day it could even do a reasonable 8-10fps on a 8MHz 286. It doesn't need much CPU horsepower to run. It's very well optimized.

DOOMMARINE117 commented 3 years ago

Wolf3D is perfectly happy with a cycle count of about 8000-10000. I remember back in the day it could even do a reasonable 8-10fps on a 8MHz 286. It doesn't much CPU horsepower to run. It's very well optimized.

really? so for blocksize or cycles its cool for it to be 8192 just that one or leave it at 1024?

i change the 48000 ones an etc to 44100. the rates.

what about scalers?

joncampbell123 commented 3 years ago

The default blocksize and sample rate should be fine. DOSBox-X does not do sound card emulation and mixer rendering by the sound card (and it's timing) as DOSBox SVN does.

The basic 2x scaler should work fine with Wolf3D. Advanced scalers aren't going to benefit from it's graphics.

DOOMMARINE117 commented 3 years ago

The default blocksize and sample rate should be fine. DOSBox-X does not do sound card emulation and mixer rendering by the sound card (and it's timing) as DOSBox SVN does.

The basic 2x scaler should work fine with Wolf3D. Advanced scalers aren't going to benefit from it's graphics.

i see. so this kind of game doesn't benefit well for wolf3d at least. so normal5x is good for it?

joncampbell123 commented 3 years ago

normal2x through normal5x, yes, depending on how large you need the emulator window.

normal5x might be appropriate for 4K monitors.

You may also try turning off doublescan to get the scale you want.

DOOMMARINE117 commented 3 years ago

normal2x through normal5x, yes, depending on how large you need the emulator window.

normal5x might be appropriate for 4K monitors.

You may also try turning off doublescan to get the scale you want.

where is doublescan located?

Wengier commented 3 years ago

@DOOMMARINE117 Try "Video" menu => "Output" => "Doublescan".

DOOMMARINE117 commented 3 years ago

@DOOMMARINE117 Try "Video" menu => "Output" => "Doublescan".

oh wasn't aware its all in the exe, lol. im so use to using the confiq, lol.

for it fit the desktop screen automatically where is that?

for it to widescreen?

well i think i just figured it out on the window screen stuff in configuration tool of dosbox.

im curious thoguh.

what is pixelshaders an usescancodes?

Wengier commented 3 years ago

@DOOMMARINE117 You can set "doublescan=false" in the [render] section of the config file so that it will load automatically. The pixelshaders option is for setting the pixel shaders for Direct3D output, and you may want to change the usescancodes setting if you have some problems with the keyboard input. You can also change Direct3D pixel shaders from the "Video" menu.

DOOMMARINE117 commented 3 years ago

@DOOMMARINE117 You can set "doublescan=false" in the [render] section of the config file so that it will load automatically. The pixelshaders option is for setting the pixel shaders for Direct3D output, and you may want to change the usescancodes setting if you have some problems with the keyboard input. You can also change Direct3D pixel shaders from the "Video" menu.

interesting.

what does force scaler mean?

Wengier commented 3 years ago

@DOOMMARINE117 “force scaler” simply means force to use the scaler even if DOSBox-X finds that the scaler may not be suitable for the current settings., and you may not get the desired result in such case. Hope this helps.

DOOMMARINE117 commented 3 years ago

@DOOMMARINE117 “force scaler” simply means force to use the scaler even if DOSBox-X finds that the scaler may not be suitable for the current settings., and you may not get the desired result in such case. Hope this helps.

cool. thanks.

it does.

is it recommended to use force scaler or no?

Wengier commented 3 years ago

@DOOMMARINE117 You can certainly try it, but I don’t think it is recommended in general, since it may cause unexpected results.

DOOMMARINE117 commented 3 years ago

@DOOMMARINE117 You can certainly try it, but I don’t think it is recommended in general, since it may cause unexpected results.

gotcha.

makes sense.

L1nK83 commented 2 years ago

Anybody had the issue that you rarely get the nazi guy scream out properly? I usually just get "mein" instead of "mein leben" for example. Messed around with settings but cant find a solution. I also lowered the blocksize for sound mixer to 512kb, it's better but still not ok.

dosbox-x.txt