Re: A86: Interrupt questions
[Prev][Next][Index][Thread]
Re: A86: Interrupt questions
the interrupt is a little to slow to make most noises (since its 200
times a second, no notes above 100 hz and no sampling rates greater than
200 hz). pong probably (i really don't know) plays such a short note
that it doesn't adversely affect processor time -OR- it oscillates the
sound, say, every movement the ball makes or something. i've never heard
the sounds so i don't know ;)
Matt2000 wrote:
>
> Is it possible to play sound with interrupts? The user int is called 200
> times/second, but
> the program I wrote uses virtually all the CPU power just to simulate the
> sound using regular djnz loops.. going full speed.
>
> Some games use sound. How is this achieved? For example, in Zpong, if the
> ball hits
> something and it makes a sound, wouldnt that just stop the ball in its
> tracks for the duration of the sound?
>
> -Matt
--
=====================================
= =
= Kirk Meyer (mailto:_@ibm.net) =
= http://www.bigfoot.com/~kirkmeyer =
= =
= "Set your affection on things =
= above, not on things on the =
= earth." Colossians 3:2 =
= =
=====================================
Follow-Ups:
References: