Home | Reviews | GUIpedia | Forum | Fun500
| soundout &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-17 | 7:01 AM |
ksr | Re:soundIs 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-17 | 1:22 PM |
| Re:soundDOSBox 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-17 | 5:07 PM |
| Re:soundBy 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-18 | 4:12 AM |
ksr | Re:soundCool. 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-18 | 12:40 PM |
| Re:soundI'm a qb guy | 2009-03-18 | 4:46 PM |
BASIC Programming Help
2021 Brandon Cornell