Umm I'm wondering how I can play different tone on the pc speaker ... ( the tiny one glued inside the case ) ... It beeps whem there's an error ... How do I send tone to it ? Is it another interrupt ?

Thank you !


Jp
Posted on 2001-08-18 21:42:45 by JP?
I wanted to mix 2 wav files like this

normalise each one first than

wave1+wave1 = wavmix -> PLAY

the thing is .. i have to mix byte by byte..
how can i do this?

:)

I like the ideia of making sound ..
how to make a wave to produce sound?
and mix waves etc..
Posted on 2001-08-18 21:58:11 by Nguga
JP3:
   Maybe a vxd. You could also write a dos driver. What plattform do you want this for?

Nguga:
   Whoa, where did that come from. That belongs on the heap as a new thread.
Posted on 2001-08-19 06:14:06 by eet_1024
If you just want some fun and learn how it was done
read this old tutorial I wrote some ten years ago.

This is low level stuff and was the method used
in the old arcade games of long long long ago...;)

I would suggest you not run the examples on NT.

Win 95-98-Me they work just fine.

I have just been told by multiple people that this download contains a trojan, could you please check this bcraven? Thank you.
Posted on 2001-08-19 07:26:07 by bcraven
In Dos Times, i wrote too routines for playing 2 sounds at a time
on the PC Speaker (.com format). They enabled playing two notes
musics or crazy weirds sounds with various quality, vibrato or
even intensity varations.

Does someone knows why they do not work any more under NT/2000?
Is there some issue out of the 'Recycled' icon???


Betov.
Posted on 2001-08-19 08:15:10 by Betov
Betov, I would suppose the problem is nt/2k disallowing direct port
access - which is good. That we don't have (or know :)) APIs for
speaker manipulation is not as good, though :/. But perhaps on
NT/2k the Beep function can be used as a replacement?
Posted on 2001-08-19 09:12:14 by f0dder
Hi betov

could the program produce some human voice output ? :)

I remember some serious tries on my Commodore A500 to
use the floppy stepper for a (human voice) speaker output.

The internal floppy drive was very loud, and with different
breaks between stepper steps you could procude different
frequencies. Beacuse I afraid that the device breaks up, I
didnt continue that project ...
Posted on 2001-08-19 09:41:26 by beaster
I remember a modplayer for dos that could use the PC speaker for
output. It actually sounded pretty well (but ate up about 90% of the
CPU cycles on my 486dx4-100). So, you can reproduce any wav on
the PC speaker, although it will of course not sound as good as on
a sound card.

So sure, you can make human voice over the pc speaker :).
Posted on 2001-08-19 09:47:27 by f0dder
If I understand correctly instructions such as in, out, sti, cli are
flagged as privileged and NT does not allow such direct access.

As f0dder said its a good thing.

If your machine is for more then just work use 95-98 or Me.

Personally my two machines are more for fun so I use 98-Me.:grin:

I have all the NT machines a fellow could want at work.:rolleyes:
Posted on 2001-08-19 09:50:36 by bcraven
I play a few games every now and then, but I'm sort of migrating
to win2k. I simply need the stability. I have also noticed that a lot
of things run faster under win2k (ok, the first time I run a few apps
after boot, they take a long time starting up, but I guess that's because
the DLLs they use aren't cached yet. After that, app startup time
is faster than under win98se).

The few games I have that I can't play under win2k usually don't
even run under my win98se (dual boot), so I just go to my kid
brothers' computer... k6ii-333 with a true SB16 ISA card. That box
runs all of the good old stuff :).

But hey, I mostly do programming or "seirous" stuff, or at least non-gaming
things (irc idling...) on my main box, so win2k is a really really really
good thing.
Posted on 2001-08-19 09:58:42 by f0dder