From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,c98f618755b0ddcc X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news3.google.com!feeder1.cambriumusenet.nl!feed.tweaknews.nl!138.195.8.3.MISMATCH!news.ecp.fr!aioe.org!not-for-mail From: tmoran@acm.org Newsgroups: comp.lang.ada 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) Organization: Aioe.org NNTP Server Message-ID: References: NNTP-Posting-Host: J4HSNf9Eqj44wTz1J3b8lQ.user.speranza.aioe.org X-Complaints-To: abuse@aioe.org X-Notice: Filtered by postfilter v. 0.8.2 X-Newsreader: Tom's custom newsreader Xref: g2news1.google.com comp.lang.ada:9389 Date: 2010-03-03T21:35:03+00:00 List-Id: >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.