From: tmoran@acm.org
Subject: Re: Thinking of using Ada for a job at home. Couple of questions first.
Date: Wed, 3 Mar 2010 21:35:03 +0000 (UTC)
Date: 2010-03-03T21:35:03+00:00 [thread overview]
Message-ID: <hmmkm6$8ru$1@speranza.aioe.org> (raw)
In-Reply-To: m2vdddt98e.fsf@pushface.org
>I think I agree with Dmitry, "reading the octet stream or else what is
>natural for the device or the protocol at hand, and then constructing
>the necessary Ada objects on the fly".
CLAW's bitmap routines have an abstract Root_DIBitmap_Type, with monochrome,
VGA, 24 bit color, etc derived types. For reading a bmp file
function Read (Filename : in String)
return Claw.Bitmaps.Root_DIBitmap_Type'class;
internally reads the header bytes, then creates an object of the correct
derived type, reads the data into it, and returns that. Works just fine.
I don't know about MIDI, but for wav and video Windows generally assumes
you can't do accurate timing, but it can. So your routines either operate
at a high level or are called as callbacks if they have to execute at an
accurate time. Ada tasking works just fine for me with audio/video stuff.
next prev parent reply other threads:[~2010-03-03 21:35 UTC|newest]
Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-03-03 16:19 Thinking of using Ada for a job at home. Couple of questions first John McCabe
2010-03-03 18:22 ` Jeffrey R. Carter
2010-03-03 20:09 ` John McCabe
2010-03-03 21:00 ` Simon Wright
2010-03-03 18:58 ` Hibou57 (Yannick Duchêne)
2010-03-03 20:17 ` John McCabe
2010-03-04 6:22 ` Hibou57 (Yannick Duchêne)
2010-03-04 11:39 ` John McCabe
2010-03-09 14:49 ` Warren Gay
2010-03-09 15:33 ` Jacob Sparre Andersen
2010-03-09 20:22 ` jonathan
2010-03-09 21:57 ` Charmed Snark
2010-03-09 22:54 ` jonathan
2010-03-10 17:46 ` Charmed Snark
2010-03-10 19:12 ` jonathan
2010-03-10 20:41 ` Simon Wright
2010-03-10 21:00 ` Pascal Obry
2010-03-09 20:32 ` Simon Wright
2010-03-10 6:42 ` J-P. Rosen
2010-03-03 19:17 ` Dmitry A. Kazakov
2010-03-03 20:38 ` John McCabe
2010-03-03 20:56 ` Simon Wright
2010-03-03 21:00 ` John McCabe
2010-03-03 21:10 ` John McCabe
2010-03-04 6:39 ` Hibou57 (Yannick Duchêne)
2010-03-03 21:35 ` tmoran [this message]
2010-03-04 6:43 ` Hibou57 (Yannick Duchêne)
2010-03-03 22:20 ` Dmitry A. Kazakov
2010-03-03 19:52 ` Gautier write-only
2010-03-03 20:57 ` John McCabe
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox