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,5d6e2ad0b6f4137a X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII Path: g2news1.google.com!postnews.google.com!i25g2000yqm.googlegroups.com!not-for-mail From: Martin Newsgroups: comp.lang.ada Subject: Re: This MIDI stuff, would someone be interested in reviewing my code? Date: Tue, 9 Mar 2010 05:11:25 -0800 (PST) Organization: http://groups.google.com Message-ID: <4ceb27af-3190-4e3c-8bd9-62a6cc5d5641@i25g2000yqm.googlegroups.com> References: <7cfcp5p6jipskr97btbmmqu3uc80c75h78@4ax.com> NNTP-Posting-Host: 20.133.0.8 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1268140286 14014 127.0.0.1 (9 Mar 2010 13:11:26 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Tue, 9 Mar 2010 13:11:26 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: i25g2000yqm.googlegroups.com; posting-host=20.133.0.8; posting-account=g4n69woAAACHKbpceNrvOhHWViIbdQ9G User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.1.8) Gecko/20100202 Firefox/3.5.8,gzip(gfe),gzip(gfe) Xref: g2news1.google.com comp.lang.ada:9487 Date: 2010-03-09T05:11:25-08:00 List-Id: On Mar 9, 12:24=A0pm, John McCabe wrote: > On Tue, 09 Mar 2010 10:21:00 +0000, John McCabe > > wrote: > >>I would make Numinputdevices and Numoutputdevices constants. > >They're not constants though - they're discovered from the > >midiInGetNumDevs and midiOutGetnumDevs functions. > > Just realised what you mean; they're constant through the life of the > program so do > > procedure MidiDevs is > =A0 =A0blah > > =A0 =A0Num_Input_Devices : Win32.UINT :=3D Win32.Mmsystem.midiInGetNumDev= s; > =A0 =A0 > begin > > =A0 =A0blah > > end MidiDevs; > > Yes, that would be possible. Better yet: Num_Input_Devices : constant Win32.UINT :=3D Win32.Mmsystem.midiInGetNumDevs; Cheers -- Martin