Home | Reviews | GUIpedia | Forum | Fun500


sound
out &h220+&hc, &h10 out &h220+&hc, dat% that makes a sound (dat%=rnd*255 for white noise (less for quieter)) out &h220+&hc, &h20 dat%=inp(&h220+&ha) that takes data from the mic... on a dos pc! no linux no windows, except those ones before 95. anyway, i program in dosemu and dosbox. there must be a longer method. yes, i just want it to work :S So have you gots any clues on this contraption? :)
2009-03-177:01 AM

ksrRe:sound
Is it just the mic code you are having trouble with? Because the output code works for me in DOSBox (although it's very choppy).
2009-03-171:22 PM

Re:sound
DOSBox makes it choppy, yes it's the darn microphone. I've tried the mic on win 98, 95, win 98 laptop and under win 98 dos, win98 dos works but why not this computer? I've used a program to find my baseaddr so it should work.
2009-03-175:07 PM

Re:sound
By the way I'm in need of knowing because I'm making a recording application for Cobra + it's for the ZaC recieve file function. Lool, no reason for send if no recieve.
2009-03-184:12 AM

ksrRe:sound
Cool. I don't have a microphone, so I can't help you much. Thanks for the above snippets though, I had no idea it was that simple to communicate with the sound card. Out of interest, do you know how you do that in Windows (FB )? i.e. send PCM values to the output buffer. I guess it's not quite as simple any more :(
2009-03-1812:40 PM

Re:sound
I'm a qb guy
2009-03-184:46 PM

BASIC Programming Help


2021 Brandon Cornell