VOGONS


better Sound Blaster support

Topic actions

First post, by robertmo

User metadata
Rank l33t++
Rank
l33t++

Finally I have managed to run "Innocent Until Caught" with sound blaster and I do hear sound effects 😀

I just had to use ct-voice.drv from this driver update "Updated DOS Drivers for SBPro 2 (CT-1600) (v1.0) (OLD)" from creative labs downlad page.
It works with DosBox 0.60 and with CVS

Those drivers doesn't work:
"Updated DOS Drivers for SB 2.0 (v1.0) (OLD)"
"Updated DOS Drivers for SB 1.5 (v1.0)"
Just for you to know that you cannot just grab any driver pack 😉

Now I wonder whether it could be usefull to add this working ct-voice.drv and a line "SET SOUND=place where DRV folder is located" to the new version of DosBox
for example:
when driver is in c:\sound\drv\ct-voice.drv
it looks like these:
SET SOUND=C:\SOUND
(without an ending backslash)

Reply 1 of 30, by Qbix

User metadata
Rank DOSBox Author
Rank
DOSBox Author

although it's good to know and a workaround.
Best would be to get all drivers pack supported in the first place.
I know harekiet has spend a big deal analyzing them. but got demotivated by it's complexity.

Water flows down the stream
How to ask questions the smart way!

Reply 2 of 30, by Srecko

User metadata
Rank Member
Rank
Member

OT: Anyone knows format specs for 2-bit and 3-bit Creative ADPCM format ?
(or conversion-to-PCM routines?)
Formats are used in Duke Nukem 2 with SB.
I could find something only for 4-bit ADPCM which is already implemented in DosBox.

Reply 3 of 30, by taiken7

User metadata
Rank Member
Rank
Member

You could use something like this to detect type;

http://getid3.sourceforge.net/module.audio.voc.phps

As for detect & playback (Pascal sources 😁 ):

http://www.bsdg.org/swag/SOUND/0057.PAS.html

Or CT-VOICE driver version:

http://www.bsdg.org/swag/SOUND/0022.PAS.html

Hmm.. looks simple enough .. I might have a go a bit later.

Reply 4 of 30, by Srecko

User metadata
Rank Member
Rank
Member

Don't bother. Without format specs we can't go anywhere.
Best thing at the moment is to route DSP commands for 2/3-bit ADPCM to
conversion function for 4-bit ADPCM but this gives distorted sound.
Duke Nukem 2 gives up after trying to play sound if that's not done.

Reply 5 of 30, by Harekiet

User metadata
Rank DOSBox Author
Rank
DOSBox Author

If you want to find out how the 2/3-bit adpcm is done you shoudl get an old soundblaster dev kit that had tools to convert regular vocs to adpcm-ed vocs 😀

Reply 7 of 30, by Srecko

User metadata
Rank Member
Rank
Member

I know only of Duke Nukem 2. VOC's are packed into a bigger file. But, you should also have same samples in 8-bit PCM format for comparation.
You can detect if program is using 2/3-bit ADPCM if you put LOG messages at
DSP commands in DSP_DoCommand function:
0x16, 0x17 for 2-bit ADPCM
0x76, 0x77 for 3-bit ADPCM

I'm not sure how 3-bit is working, probably 8 samples in 3 bytes:)
Short explanation about AdaptivePulseCodeModulation:
Reference byte is a starting point and you calculate a difference for next sample, etc.
Here's also a diff about getting DN2 to produce any sound, better than nothing.

Attachments

  • Filename
    sbdiff.txt
    File size
    540 Bytes
    Downloads
    236 downloads
    File license
    Fair use/fair dealing exception

Reply 8 of 30, by taiken7

User metadata
Rank Member
Rank
Member

Oddly DN2 sounds just .. er like commander keen actually
on the DosboxCVS I have built...
(wonder if either I've always heard distorted sound or if dosbox
is currently doing type 3 falls-through to type 4 ).
Are you sure DN2 uses compressed .VOC's ?

(I'll check it out with the patches anyhow, thanks!)

[Not sure why problems with ADPCM, but I'll see if my source(s) are correct]

Reply 9 of 30, by Srecko

User metadata
Rank Member
Rank
Member

Heh, here's a new patch. Now, it sound's very similar to what I get on my
VIA motherboard with integrated SB legacy support while playing DN2.😀

It's a complete 2/3 bit ADPCM implementation except i'm not sure yet about

conversion routines (but game sound OK). I wasn't able to find SB SDK.
Didn't check very thouroughly, but i hope there aren't errors.

Attachments

  • Filename
    sbdiff22.txt
    File size
    5.75 KiB
    Downloads
    544 downloads
    File license
    Fair use/fair dealing exception
Last edited by Srecko on 2004-01-27, 21:40. Edited 1 time in total.

Reply 14 of 30, by tkcmd

User metadata
Rank Newbie
Rank
Newbie

Hmmmm wanted to play some Armored Fist with the latest cvs build and it wouldnt work when i tried using SB (but it did work when turning sound of / pc speaker)
Armored Fist worked great in previous CVS's with SB so maybe something broke when working on the SB thing ?