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=0.7 required=5.0 tests=BAYES_00,MSGID_RANDY autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,335f67c75a2a5d5 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2000-12-28 08:00:11 PST Path: supernews.google.com!sn-xit-02!supernews.com!newsfeed.mesh.ad.jp!newsfeed.stanford.edu!xfer10.netnews.com!netnews.com!news.maxwell.syr.edu!nntp2.deja.com!nnrp1.deja.com!not-for-mail From: Ted Dennison Newsgroups: comp.lang.ada Subject: Re: In Plain Text: Tags.Internal_Tag(String'Input(Stream)) ?? Date: Thu, 28 Dec 2000 15:54:33 GMT Organization: Deja.com Message-ID: <92fnnn$emq$1@nnrp1.deja.com> References: <3A4AC329.9C2A311A@home.com> <3A4B557F.F167C8E@home.com> NNTP-Posting-Host: 204.48.27.130 X-Article-Creation-Date: Thu Dec 28 15:54:33 2000 GMT X-Http-User-Agent: Mozilla/5.0 (Windows; U; WinNT4.0; en-US; m18) Gecko/20001207 X-Http-Proxy: 1.0 x68.deja.com:80 (Squid/1.1.22) for client 204.48.27.130 X-MyDeja-Info: XMYDJUIDtedennison Xref: supernews.google.com comp.lang.ada:3423 Date: 2000-12-28T15:54:33+00:00 List-Id: In article <3A4B557F.F167C8E@home.com>, "Warren W. Gay VE3WWG" wrote: > (Apologies re: the prior post in HTML, here again in plain:) > > I want to read in WAVE file chunks using the S'Class'Input() facility. > Each WAVE chunk starts with a String(1..4) that identifies the chunk. > I have set up the external representation of each tagged record to > match this chunk ID, for example: > > for Riff_Form'External_Tag use "RIFF"; > > However, the difficulty now is that I want to override the way the > Tag is read in (the Tag length is ALWAYS 4 bytes here). The Ada > implementation attempts to read in the lower bound and upper > bound of the Tag string first [ See ref to the note about > Tags.Internal_Tag(String'Input(Stream)) below ]. > > I would prefer not to override String'Input since this would affect > it's behavour for all strings. You might have better luck creating your own custom stream type for WAV data. -- T.E.D. http://www.telepath.com/~dennison/Ted/TED.html Sent via Deja.com http://www.deja.com/