Stockholm, Sweden, Europe, Earth Interests: Old games & young women
RankModerator
Rank
Moderator
Posts
5128
Joined
2004-01-18, 04:15
Location
Stockholm, Sweden, Europe, Earth Interests: Old games & young women
MajorGrubert wrote:
MiniMax wrote:
So, my hypothesis so far is that the engine used by Origin has major problems with VDMSound and the SB-16 emulation.
Or at least some major problems with VDMSound, SB-16 and your sound chip.
I am trying to solve a problem with crackling sounds in a game. To rule out the physical sound hardware, I tried to de-select the Sound Blaster output device, and just save the sound to a file (this is with VDMSound 2.1.0 beta and the LaunchPad).
But when I run the game, I can still hear the sound?
Oh - listening to the recorded VDMSnnnn.WAV file reproduces the crackling. Can this be due to the still active device?
Is there something else, like a very stubborn setting in the VDMS.INI file that I need to change manually? Or is the device always active and involved in the emulation no matter what?
--
MiniMax
No, disbaling it in LaunchPad should stop the sound.
Crackling is then due to DMA. Is the sound more or less rec ognizable under the crackling? Try putting the min/max DMA pair to 1 and 3 respectively (instead of 5 and 15 or whatever the default is).
Cheers.
V.
It just bugs me, that SoundFX is able to reproduce the sound perfectly, and VDMSound is not 😲
vladr wrote:
Try putting the min/max DMA pair to 1 and 3 respectively (instead of 5 and 15 or whatever the default is).
Cheers.
V.
I modified the default VDMS.INI file to read:
1[DMA Transfer Manager.config] 2;minDMAPeriod = 5 ; these regulate the frequency of DMA ... 3;maxDMAPeriod = 15 ; ... activity (polling and updating) 4 5minDMAPeriod = 1 6maxDMAPeriod = 3
and used DOSDRV /I:MODIFIED.VDMS.INI to load the new 1/3 settings before starting the game. It made no difference at all 😢
Vladr, can I ask you to follow up on the crackling issue in the Wing Commander III thread, and keep this to the problem of disabling the actual sound?
Since I had started to modify the VDMS.INI file, I tried to figure out how to disable DSoundDevice and only direct the wave output to a file. But I just can not figure out how to do it. Here is what I think is the relevant part of VDMS.INI:
1;-------------------------------------------------------------------------------------------------------- 2; This module is used to play back the SB Wave data on a Windows DirectSound device 3;-------------------------------------------------------------------------------------------------------- 4 5[SB Wave Player] 6CLSID = DSoundDevice.WaveOut ; you can also use 'WaveDevice.WaveOut' 7Path = DSoundDevice.dll ; you can also use 'WaveDevice.dll' 8 9;; [SB Wave Player.depends] 10;; waveOut = Wave Writer 11 12[SB Wave Player.config] 13device = -1 ; -1 = the Wave/DirectSound mapper, 0 = first device, 1 = second, etc. 14buffer = 75 ; how many milliseconds of audio data to buffer 15 16;-------------------------------------------------------------------------------------------------------- 17; This module is used to dump Wave data to a raw PCM file 18;-------------------------------------------------------------------------------------------------------- 19 20;; [Wave Writer] 21;; CLSID = DiskWriter.WaveOut 22;; Path = DiskWriter.dll
Which combination of CLSID's do I have to comment in/out? How do I specify the path to the wave file?
I browsed the CVS trying to figure out if there was an undocumented waveOut.FilePath or something, but that just left me confused at a higher level....
--
MiniMax
No, disbaling it in LaunchPad should stop the sound.
Well, it doesn't 😕
Anyone here that can confirm that the LaunchPad in 2.1.0 beta is able to disable the sound device?
At the properties tab for MIDI, AdLib and Sound Blaster you have to option to choose the output method: a sound device and/or a file. You can disable the device and send output only to the file, if you want.
61[SBWaveWriter.config] 62path=M:\EMS-test\Wing Commander III
I don't know if I have understood the format of the INI-file correctly, but it seems like the SBWaveWriter is a dependent on the main SBController? So if output to a file is selected, then the sound device is automagically also active?
Have you tried to disable *BOTH* the device and the file? I have, and I got sound anyway!
--
MiniMax
I ran the game in total silence, and got a nice vdms0001.wav file at ~1 MB in size. And the crackling was still there. So I guess that rules out the actual audio hardware from the equation.
--
MiniMax
For LaunchPad: yeah, that was a silly copy/paste typo thing, SB and FM "device" output would always be enabled no matter what. It's fixed in CVS now, and will be picked up by the next build (whenever that will happen).