delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/09/15/14:29:47

Message-Id: <m0xAaFe-000S1iC@inti.edu.ar>
Comments: Authenticated sender is <salvador AT natacha DOT inti DOT edu DOT ar>
From: "Salvador Eduardo Tropea (SET)" <salvador AT inti DOT edu DOT ar>
Organization: INTI
To: somjen AT netvision DOT net DOT il (Ohad Somjen), djgpp AT delorie DOT com
Date: Mon, 15 Sep 1997 15:52:34 +0000
MIME-Version: 1.0
Subject: Re: realtime programing in djgpp, possible?

somjen AT netvision DOT net DOT il (Ohad Somjen) wrote:

> hi you all,
> i need to write a realtime program with the following functions and
> since i have the grafix ready (i wrote it in another program) in djgpp
> i would like to know if i can do it in djgpp, well here we go:
> 1) set up dma channel 3
> 2) hook up int 5
> when the buffer of the dma is full it signals to the system with int 5
> and then
> 3) add buffer to program buffer
> 4) refresh screen with new program buffer
> i understood that there is a problem with protected mode,
> is it true or is there a way i can bypass it?
> any help appriciated,
Please be more specific about the problem you mention. My program works in real 
time and makes:

1) Set Ups a 16 bits DMA transfering stereo sound with 16 bits of resolution.
2) Each time the buffer is filled I get an IRQ to swap buffers.
3) I calculate the FFT of the signal.
4) I scroll a buffer in screen with the last values.
5) I add a new line to it with the last FFT results.
That makes a graphic of Spectrum v.s. time scrolling in the screen. I make the 
same for both channels. All real-time all pure DJGPP ;-))

SET 
------------------------------------ 0 --------------------------------
Visit my home page: http://www.geocities.com/SiliconValley/Vista/6552/
Salvador Eduardo Tropea (SET). (Electronics Engineer)
Alternative e-mail: set-sot AT usa DOT net - ICQ: 2951574
Address: Curapaligue 2124, Caseros, 3 de Febrero
Buenos Aires, (1678), ARGENTINA
TE: +(541) 759 0013

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019