home *** CD-ROM | disk | FTP | other *** search
/ ftp.mactech.com 2010 / ftp.mactech.com.tar / ftp.mactech.com / csmpdigest / csmp-digest-v3-012 < prev    next >
Text File  |  2010-09-21  |  67KB  |  1,832 lines

  1. Received-Date: Mon, 11 Apr 1994 12:53:05 +0200
  2. From: pottier@clipper.ens.fr (Francois Pottier)
  3. Subject: csmp-digest-v3-012
  4. To: csmp-digest@ens.fr
  5. Date: Mon, 11 Apr 94 12:52:57 MET DST
  6. X-Mailer: ELM [version 2.3 PL11]
  7. Errors-To: listman@ens.fr
  8. Reply-To: pottier@clipper.ens.fr
  9. X-Sequence: 14
  10.  
  11. --------------------
  12. PowerMacCrash    2K
  13. --------------------
  14.  
  15. C.S.M.P. Digest             Mon, 11 Apr 94       Volume 3 : Issue 12
  16.  
  17. Today's Topics:
  18.  
  19.         Antialiasing code-algo somewhere?
  20.         Finding full path names
  21.         Global cursor change: how to?
  22.         Graphic Elements: an element that isn't there
  23.         How do I read digital samples from an audio CD?
  24.         I crashed a Power Mac!
  25.         Multiple HD Reads, can it be done?
  26.         PBDTGetAPPL on a network volume?
  27.         PEF, XCOFF Info Wanted
  28.         QuickDraw Question
  29.         Quickdraw Blend Function Inaccurate?
  30.         Read-Save Styled Text Code
  31.         Try 3: Movie Credit Scrolling - How?
  32.         making fat binaries question
  33.  
  34.  
  35.  
  36. The Comp.Sys.Mac.Programmer Digest is moderated by Francois Pottier
  37. (pottier@clipper.ens.fr).
  38.  
  39. The digest is a collection of article threads from the internet newsgroup
  40. comp.sys.mac.programmer.  It is designed for people who read c.s.m.p. semi-
  41. regularly and want an archive of the discussions.  If you don't know what a
  42. newsgroup is, you probably don't have access to it.  Ask your systems
  43. administrator(s) for details.  If you don't have access to news, you may
  44. still be able to post messages to the group by using a mail server like
  45. anon.penet.fi (mail help@anon.penet.fi for more information).
  46.  
  47. Each issue of the digest contains one or more sets of articles (called
  48. threads), with each set corresponding to a 'discussion' of a particular
  49. subject.  The articles are not edited; all articles included in this digest
  50. are in their original posted form (as received by our news server at
  51. nef.ens.fr).  Article threads are not added to the digest until the last
  52. article added to the thread is at least two weeks old (this is to ensure that
  53. the thread is dead before adding it to the digest).  Article threads that
  54. consist of only one message are generally not included in the digest.
  55.  
  56. The digest is officially distributed by two means, by email and ftp.
  57.  
  58. If you want to receive the digest by mail, send email to listserv@ens.fr
  59. with no subject and one of the following commands as body:
  60.     help                        Sends you a summary of commands
  61.     subscribe csmp-digest Your Name    Adds you to the mailing list
  62.     signoff csmp-digest            Removes you from the list
  63. Once you have subscribed, you will automatically receive each new
  64. issue as it is created.
  65.  
  66. The official ftp info is //ftp.dartmouth.edu/pub/csmp-digest.
  67. Questions related to the ftp site should be directed to
  68. scott.silver@dartmouth.edu. Currently no previous volumes of the CSMP
  69. digest are available there.
  70.  
  71. Also, the digests are available to WAIS users as comp.sys.mac.programmer.src.
  72.  
  73.  
  74. -------------------------------------------------------
  75.  
  76. >From mcmath@csb1.nlm.nih.gov (Charles F. McMath)
  77. Subject: Antialiasing code-algo somewhere?
  78. Date: Fri, 25 Mar 94 15:44:51 GMT
  79. Organization: National Library of Medicine
  80.  
  81. (Tried to post this last night, looks like it didn't work.  That
  82. will explain any duplicates floating around...)
  83.  
  84. I have a TIFF image I'm displaying in a window; however, it needs
  85. to be antialiased.  I've seen some antialiasing code that works on
  86. text, but it's written in Think C with inline assembly.  I need to
  87. do something in MPW, and would prefer straight C code.
  88.  
  89. Anybody have any pointers as to where I can look?  If such code
  90. exists, that'd be great, but I'll take leads to books, articles, etc,
  91. on antialiasing.  Note this is dealing with generalized graphics,
  92. not text (which I read last night, 32-bit QD can antialias - see
  93. develop issue 1, I think).
  94.  
  95. Thanks to all!
  96.  
  97. chuck
  98.  
  99. +--------------------------------------------------------------------------+
  100. |  Chuck McMath *   On Line Computer Systems, Inc.  *  chuck@ocs.com       |
  101. |  Hey batter, hey batter, hey batter, swing!" - Anon.                     |
  102. |  Best Album of 1994: "Barney & Friends" Best Song: Barney's "I Love You" |
  103. +--------------------------------------------------------------------------+
  104.  
  105. +++++++++++++++++++++++++++
  106.  
  107. >From lowry@shiva.eche.ualberta.ca (Brian Lowry)
  108. Date: 25 Mar 1994 20:58:58 GMT
  109. Organization: Chem Eng - Univ of Alberta
  110.  
  111. In article <1994Mar25.154451.1487@nlm.nih.gov>, mcmath@csb1.nlm.nih.gov
  112. (Charles F. McMath) wrote:
  113.  
  114. > I have a TIFF image I'm displaying in a window; however, it needs
  115. > to be antialiased.  I've seen some antialiasing code that works on
  116. > text, but it's written in Think C with inline assembly.  I need to
  117. > do something in MPW, and would prefer straight C code.
  118.  
  119.   Draw the TIFF in an offscreen 24 bit GWorld and then Update the GWorld to
  120. the desired size - you should get an anti-aliased version of your image
  121. (inasmuch as simple averaging is anti-aliasing -- some might argue it
  122. isn't).  All included gratis, thanks to 32 bit Quickdraw...
  123.  
  124. -- 
  125.  
  126. Brian Lowry
  127.  
  128. +++++++++++++++++++++++++++
  129.  
  130. >From markhanrek@aol.com (MarkHanrek)
  131. Date: 27 Mar 1994 01:16:02 -0500
  132. Organization: America Online, Inc. (1-800-827-6364)
  133.  
  134. In article <1994Mar25.154451.1487@nlm.nih.gov>, mcmath@csb1.nlm.nih.gov
  135. (Charles F. McMath) writes:
  136.  
  137. You might look in the "Graphic Gems" source code collection, and also in "NIH
  138. Image".  Sorry, I'm unable to specify where you can find these.
  139.  
  140. Mark Hanrek
  141.  
  142.  
  143. ---------------------------
  144.  
  145. >From mike <Mike.Doyle@comp.vuw.ac.nz>
  146. Subject: Finding full path names
  147. Date: 21 Mar 1994 21:35:56 GMT
  148. Organization: Comp Sci Dept. VUW
  149.  
  150. I have been attempting to use the std file package to get 
  151. full pathnames for files.  What I want to do is use SFGetFile
  152. to select a file and then return the full pathname for that 
  153. file.
  154.  
  155. Is there any way of getting the full pathname of the default 
  156. directory?  Mac Revealed says the vRefNum is the reference number 
  157. of the default directory but as far as I can tell it is the reverence
  158. number of the volume (irrespective of the directory within that vol).
  159.  
  160. I suppose I want a way of doing the equialent of the UNIX command pwd.
  161.  
  162. Any ideas suggestions..
  163.  
  164. mike
  165.  
  166. ps I know you are not supposed to refer to files by pathnames but this
  167. is for a first course in programming and vRefNums and FileRefNums is a
  168. bit heavy at this stage.
  169. ==============================================================
  170. mike@comp.vuw.ac.nz
  171. mike.doyle@vuw.ac.nz
  172.  
  173. Mathematics and Computer Science Departments
  174. 3rd Floor Cotton Building               
  175. Victoria University
  176. P O Box 600                               Phone:     + 64 4 472 1000 x8874
  177. Wellington, New Zealand.            Fax:   + 64 4 471 2070
  178. ==============================================================
  179.  
  180. +++++++++++++++++++++++++++
  181.  
  182. >From walkerm@acf2.nyu.edu (Michael A. Walker)
  183. Date: Thu, 24 Mar 1994 18:52:15 -0500
  184. Organization: New York University
  185.  
  186. In article <2ml3vs$ccc@st-james.comp.vuw.ac.nz>, mike
  187. <Mike.Doyle@comp.vuw.ac.nz> wrote:
  188.  
  189. > I have been attempting to use the std file package to get 
  190. > full pathnames for files.  What I want to do is use SFGetFile
  191. > to select a file and then return the full pathname for that 
  192. > file.
  193.  
  194. The code to do this isn't really that hard.  SFGetFile, and its
  195. cousins, return the volume name and directory of the file selected
  196. in its dialog.  You can use this with the following:
  197.  
  198. void PathNameFromDirID(long dirID, short vRefNum, StringPtr
  199.                                                                                                        fullPathName)
  200. {
  201.     CInfoPBRec    block;
  202.     Str255        directoryName;
  203.     OSErr        err;
  204.  
  205.     fullPathName[0] = '\0';
  206.  
  207.     block.dirInfo.ioDrParID = dirID;
  208.     block.dirInfo.ioNamePtr = directoryName;
  209.     do {
  210.             block.dirInfo.ioVRefNum = vRefNum;
  211.             block.dirInfo.ioFDirIndex = -1;
  212.             block.dirInfo.ioDrDirID = block.dirInfo.ioDrParID;
  213.             err = PBGetCatInfo(&block, FALSE);
  214.             pstrcat(directoryName, (StringPtr)"\p:");
  215.             pstrinsert(fullPathName, directoryName);
  216.     } while (block.dirInfo.ioDrDirID != 2);
  217. }
  218.  
  219. where fullPathName is a pointer to a string (pascal string, if I
  220. remember correctly) you give the function to store the full
  221. path name.  The functions 'pstrcat' and 'pstrinsert' are defined
  222. as:
  223.  
  224. void pstrcat(StringPtr dst, StringPtr src)
  225. {
  226.     BlockMove(src + 1, dst + *dst + 1, *src);
  227.     *dst += *src;
  228. }
  229.  
  230. void pstrinsert(StringPtr dst, StringPtr src)
  231. {
  232.     BlockMove(dst + 1, dst + *src + 1, *dst);
  233.     BlockMove(src + 1, dst + 1, *src);
  234.     *dst += *src;
  235. }
  236.  
  237. Hope this helps.
  238. -- 
  239. Michael A. Walker
  240. New York University
  241. walkerm@acf2.nyu.edu
  242. ==============================================------------------------8-;
  243. main() {int x,y,k;char *b=" .:,;!/>)|&IH%*#@";double
  244. cr,ci,zr,zi,temp,cx,cy;
  245. for(y=30;puts(""),cy=y*0.1-1.5,y-->=0;){for(x=0;cx=x*0.04-2,zr=0,zi=0,x++<75;)
  246. {for(cr=cx,ci=cy,k=0;temp=zr*zr-zi*zi+cr,zi=2*zr*zi+ci,zr=temp,k<112;k++)
  247. if(zr*zr+zi*zi>10)break;printf("%c",b[k%16]);}}}      /*  try this on for
  248. size!!  */
  249.  
  250. +++++++++++++++++++++++++++
  251.  
  252. >From d88-jwa@mumrik.nada.kth.se (Jon Wdtte)
  253. Date: 25 Mar 1994 08:35:26 GMT
  254. Organization: The Royal Institute of Technology
  255.  
  256. In <walkerm-240394185215@walker.infocenter.nyu.edu> walkerm@acf2.nyu.edu (Michael A. Walker) writes:
  257.  
  258. >    do {
  259. >            block.dirInfo.ioVRefNum = vRefNum;
  260. >            block.dirInfo.ioFDirIndex = -1;
  261. >            block.dirInfo.ioDrDirID = block.dirInfo.ioDrParID;
  262. >            err = PBGetCatInfo(&block, FALSE);
  263. >            pstrcat(directoryName, (StringPtr)"\p:");
  264. >            pstrinsert(fullPathName, directoryName);
  265. >    } while (block.dirInfo.ioDrDirID != 2);
  266.  
  267. So if you get an error, you wil just keep looping
  268. without ever leaving the loop?
  269.  
  270. Cheers,
  271.  
  272.                     / h+
  273. -- 
  274.  -- Jon W{tte, h+@nada.kth.se, Mac Hacker Deluxe --
  275.  
  276.     CORRECTLY in this case meaning to the language spec, not to the
  277.     naive expectations of the programmer.
  278.  
  279. +++++++++++++++++++++++++++
  280.  
  281. >From Carl R. Osterwald <carl_osterwald@nrel.gov>
  282. Date: Fri, 25 Mar 94 16:06:09 GMT
  283. Organization: National Renewable Energy Laboratory
  284.  
  285. In article <walkerm-240394185215@walker.infocenter.nyu.edu> Michael A.
  286. Walker, walkerm@acf2.nyu.edu writes:
  287. >    fullPathName[0] = '\0';
  288. >where fullPathName is a pointer to a string (pascal string, if I
  289. >remember correctly) you give the function to store the full
  290. >path name.
  291.  
  292. Using a Pascal string for the result will fail if the resultant full path
  293. name exceeds 255 characters, which is entirely possible.  This is one
  294. reason why the OS never really uses full path names, and why the
  295. StandardFile routines use FSSpecs instead.
  296.  
  297. +++++++++++++++++++++++++++
  298.  
  299. >From robert@fpksu65.bv.tu-berlin.de (Robert Uebbing)
  300. Date: 27 Mar 1994 09:56:25 GMT
  301. Organization: TU Berlin
  302.  
  303. In article <A9B85A01E0027D1A@cro.nrel.gov>, Carl R. Osterwald
  304. <carl_osterwald@nrel.gov> wrote:
  305. > In article <walkerm-240394185215@walker.infocenter.nyu.edu> Michael A.
  306. > Walker, walkerm@acf2.nyu.edu writes:
  307. > >    fullPathName[0] = '\0';
  308. > .
  309. > .
  310. > .
  311. > >where fullPathName is a pointer to a string (pascal string, if I
  312. > >remember correctly) you give the function to store the full
  313. > >path name.
  314. > Using a Pascal string for the result will fail if the resultant full path
  315. > name exceeds 255 characters, which is entirely possible.  This is one
  316. > reason why the OS never really uses full path names, and why the
  317. > StandardFile routines use FSSpecs instead.
  318.  
  319. well, the main reason why the MacOS uses FSSpecs to identify files is
  320. that the full file path name is *not* definite. you can give different
  321. volumes with the same name and therefore have the identical full path
  322. name for different files (opposed to the unix and dos file system).
  323.  
  324. robbi
  325.  
  326. ***********************************************************************
  327. * Robert Uebbing                                                      *
  328. * - Institut fuer Photogrammetrie und Kartographie an der TU Berlin - *
  329. * - Institute for Photogrammetry and Cartography TU Berlin, Germany - *
  330. ***********************************************************************
  331.  
  332. ---------------------------
  333.  
  334. >From AIKEN <INRA000@MUSICB.MCGILL.CA>
  335. Subject: Global cursor change: how to?
  336. Date: Sun, 27 Mar 1994 05:19:26 GMT
  337. Organization: McGill University
  338.  
  339.     I'm writing a background app that kicks in every once in a while,
  340. and I would like to communicate the fact that I'm working to the user.
  341. I figured a cute way of doing this would be an Auto-Doubler-like cusor
  342. switch (For the unfamiliar, AD changes the cursor to "AD" when it's
  343. working on your drive).
  344.  
  345.     However, cursor changes seem to be local to an app, i.e. the cursor
  346. only actually gets changed on a SetCursor() call if your app is in the
  347. foreground. So, of course, calling setCursor() from a background app
  348. seems to have no effect at all.
  349.  
  350.     Is there a way of accomplishing what I wish to do? Any advice
  351. appreciated.
  352.  
  353.     Cheers,
  354.  
  355.     Mark Aiken
  356.     inra@musicb.mcgill.ca
  357.  
  358.  
  359. +++++++++++++++++++++++++++
  360.  
  361. >From markhanrek@aol.com (MarkHanrek)
  362. Date: 27 Mar 1994 01:28:06 -0500
  363. Organization: America Online, Inc. (1-800-827-6364)
  364.  
  365. AutoDoubler and Public Utilities and other things which change the cursor when
  366. they are active have one thing in common -- they are all extensions.
  367.  
  368. When extensions patch a trap, such as SetCursor, they patch it before any
  369. applications are active, and affect the behavior of all that follows.
  370.  
  371. But if an application patches SetCursor, it only impacts itself when it is
  372. active.
  373.  
  374. To be able to affect the cursor "globally" no matter what, an extension of some
  375. sort will be required ( a helper extension or full blown doohickie ).
  376.  
  377. Have fun! :)
  378.  
  379. Mark Hanrek
  380.  
  381.  
  382. +++++++++++++++++++++++++++
  383.  
  384. >From Robin J. Lunge <rjl1@cornell.edu>
  385. Date: 28 Mar 1994 02:40:25 GMT
  386. Organization: Cornell University
  387.  
  388. To set the cursor from the background, you can fiddle with the low-memory
  389. globals TheCrsr and CrsrNew. The former contains the current (1-bit)
  390. cursor. The latter has to be tickled to get the system to actually show
  391. the change.
  392.  
  393. +++++++++++++++++++++++++++
  394.  
  395. >From pottier@trimaran.ens.fr (Francois Pottier)
  396. Date: 28 Mar 1994 14:10:42 GMT
  397. Organization: Ecole Normale Superieure, PARIS, France
  398.  
  399. In article <2n5g2pINN450@newsstand.cit.cornell.edu>,
  400. Robin J. Lunge  <rjl1@cornell.edu> wrote:
  401. >To set the cursor from the background, you can fiddle with the low-memory
  402. >globals TheCrsr and CrsrNew. The former contains the current (1-bit)
  403. >cursor. The latter has to be tickled to get the system to actually show
  404. >the change.
  405.  
  406. Another, cleaner way (IMHO) is to record the address of _SetCursor at
  407. INIT time, and then call it directly. Thus you're able to bypass Multifinder's
  408. patch and change the cursor even when you're in the background.
  409.  
  410. The only drawback is that you need an INIT. In my case it didn't matter
  411. because I already had one.
  412.  
  413.  
  414. -- 
  415. Francois Pottier
  416. pottier@dmi.ens.fr
  417.  
  418. +++++++++++++++++++++++++++
  419.  
  420. >From wdh@netcom.com (Bill Hofmann)
  421. Date: Mon, 28 Mar 1994 17:51:23 GMT
  422. Organization: NETCOM On-line Communication Services (408 241-9760 guest)
  423.  
  424.  
  425. >In article <2n5g2pINN450@newsstand.cit.cornell.edu>,
  426. >Robin J. Lunge  <rjl1@cornell.edu> wrote:
  427. >>To set the cursor from the background, you can fiddle with the low-memory
  428. >>globals TheCrsr and CrsrNew. The former contains the current (1-bit)
  429. >>cursor. The latter has to be tickled to get the system to actually show
  430.  
  431. >Another, cleaner way (IMHO) is to record the address of _SetCursor at
  432. >INIT time, and then call it directly. Thus you're able to bypass Multifinder's
  433. >
  434.  
  435. >The only drawback is that you need an INIT. In my case it didn't matter
  436. Eeek.  But if you get the address of SetCursor and call it directly, you
  437. also lose any *other* patches installed, that the USER has installed,
  438. like ClikChange or other abominations.  
  439.  
  440. To do it right, you should *patch* SetCursor, and normally have your patch
  441. be a no-op.  A modern Mac way to communicate easily would be to set up a:
  442.     1. SetCursor patch which looks at a variable to determine whehter
  443.        to fool with the cursor
  444.     2. a Gestalt selector which either provides the address of said
  445.        variable or a pointer to a function to call which would set
  446.        the variable and do other things
  447. Since the original poster seems to want to (probably) animate the cursor
  448. or some such thing, one useful way to do this would be to use the Gestalt
  449. proc to return the address of a function which either
  450.     a. fired off a VBL task which animates the cursor (being sure to
  451.        check CrsrBusy before calling SetCursor)
  452.     b. turns off the VBL task.
  453. Ugh. Getting complex...
  454. -- 
  455. -Bill Hofmann                    wdh@netcom.COM
  456.  Fresh Software and Instructional Design    +1 510 524 0852
  457.  
  458. ---------------------------
  459.  
  460. >From al@crucible.powertools.com (Al Evans)
  461. Subject: Graphic Elements: an element that isn't there
  462. Date: 28 Mar 94 17:54:34 GMT
  463. Organization: PowerTools, Austin, Texas
  464.  
  465.  
  466. This is an answer to a question about Graphic Elements which several
  467. people have asked me in email. If you don't have Graphic Elements,
  468. skip this article -- or better yet, go ftp it from mac.archive.umich.edu
  469. (or its mirror sites): /mac/misc/demo/graphicelementsdemo.sit.hqx.
  470. Don't be put off by the name: the file includes a Think C 6.0
  471. linkable library and example programs with source code.
  472.  
  473. The following simple Graphic Element has two basic uses:
  474.  
  475. 1) It can act as an invisible "detector", to report or take action
  476. whenever another Graphic Element enters a certain rectangle within
  477. its world;
  478.  
  479. 2) It can be slaved to another Graphic Element in order to give that
  480. element a collision rectangle different in size or position from its
  481. animationRect.
  482.  
  483. In either case, an appropriate collision procedure should be
  484. assigned to the "null" element.
  485.  
  486. - ---Source code for null Graphic Element-----
  487.  
  488. pascal void RenderNullElement(GrafElPtr element, GWorldPtr destGWorld)
  489. {
  490. #pragma unused(destGWorld, element)
  491.  
  492.     //For debugging, could do 
  493.     //FrameRect(&element->animationRect);
  494. }
  495.  
  496. GrafElPtr NewNullElement(GEWorldPtr world, OSType id, 
  497.                 short plane, Rect *animRect)
  498. {
  499.     GrafElPtr    element;
  500.     
  501.     element = NewGrafElement(world, id, plane, 
  502.             sizeof(GrafElement), NoLoader, 0, 0);
  503.     if (element) {
  504.         element->animationRect = *animRect;
  505.         element->copyMode = 0;
  506.         element->flags = geShown;
  507.         element->renderIt = RenderNullElement;
  508.         element->drawIt = nil;
  509.         element->drawData = nil;    
  510.         element->changeIntrvl = 0;
  511.     }
  512.     return element;
  513. }
  514. - ---end source code-----
  515.                     --Al Evans--
  516. -- 
  517. Al Evans            |   Graphic Elements: A new standard for 
  518.                 |   high-performance interactive Macintosh graphics.
  519. al@crucible.powertools.com  |   Available from mac.archive.umich.edu
  520.                 |   /mac/misc/demo/graphicelementsdemo.sit.hqx
  521.  
  522. ---------------------------
  523.  
  524. >From bfitz@ACM.ORG
  525. Subject: How do I read digital samples from an audio CD?
  526. Date: 23 Mar 1994 19:39:09 GMT
  527. Organization: ACM Network Services
  528.  
  529. How can I read the digital audio data from an audio CD in a usable
  530. >From bfitz@ACM.ORG
  531. Subject: How do I read digital samples from an audio CD?
  532. Date: 23 Mar 1994 19:47:35 GMT
  533. Organization: ACM Network Services
  534.  
  535. How can I read the digital audio data from an audio CD in a usable
  536. (mungeable) format? Ideally, I want to get 44Khz 16-bit stereo data which
  537. I can then process myself (using custom soudn processing routines).
  538.  
  539. I did the trick about running MoviePlayer (on a PowerMacintosh 7100/66 with
  540. a CD 300i), and using Open to convert a track from an audio CD into a
  541. QuickTime movie. Now what? I found a utility called Movie2Snd that looks
  542. like it's supposed to make an 'snd ' resource out of the soundtrack of a
  543. QuickTime movie, but it fails on these (5 to 8 MB) movies.
  544.  
  545. It "looks" like all I need to do is
  546.  
  547.    OpenMovieFile()
  548.     NewMovieFromFile()
  549.     CloseMovieFile()
  550.  
  551.     PutMovieIntoTypedHandle()
  552.  
  553. but the QuickTime documentaion is very vague about sample rates, sample
  554. size, etc. Also, given that MoviePlayer turned a 4 minute sample into a
  555. mere 5.3 MB file indicates that it is probably saving this as a mono 8-bit
  556. 22.254 Khz sample. I really want the original 44Khz 16-bit data.
  557.  
  558. So, where do I go to find out how to get the audio data samples? Any
  559. documents I can read? Anyone's brain I can pick? Favors to exchange?
  560.  
  561.    -- Brian Fitzgerald --
  562.  
  563. +++++++++++++++++++++++++++
  564.  
  565. >From ldo@waikato.ac.nz (Lawrence D'Oliveiro, Waikato University)
  566. Date: 25 Mar 94 15:41:47 +1300
  567. Organization: University of Waikato, Hamilton, New Zealand
  568.  
  569. In article <2mq6cn$jr5@hopper.acm.org>, bfitz@ACM.ORG writes:
  570. >
  571. > ... the QuickTime documentaion is very vague about sample rates, sample
  572. > size, etc.
  573.  
  574. This is all explained in "Inside Macintosh: QuickTime". Information about
  575. samples is stored in sample descriptions; the descriptions for sound samples
  576. are defined in Movies.h/p/def.
  577.  
  578. > Also, given that MoviePlayer turned a 4 minute sample into a
  579. > mere 5.3 MB file indicates that it is probably saving this as a mono 8-bit
  580. > 22.254 Khz sample. I really want the original 44Khz 16-bit data.
  581.  
  582. There is an "Options..." button in the movie open dialog. This is where you
  583. choose sample size and rate, and the portion of the track you want to capture.
  584.  
  585. Lawrence D'Oliveiro                       fone: +64-7-856-2889
  586. Info & Tech Services Division              fax: +64-7-838-4066
  587. University of Waikato            electric mail: ldo@waikato.ac.nz
  588. Hamilton, New Zealand    37^ 47' 26" S, 175^ 19' 7" E, GMT+12:00
  589.  
  590. +++++++++++++++++++++++++++
  591.  
  592. >From rrwood@ionews.io.org (Roy Wood)
  593. Date: 26 Mar 1994 11:22:16 -0500
  594. Organization: Internex Online (io.org) Data: 416-363-4151  Voice: 416-363-8676
  595.  
  596. I know that QuickTime makes it possible to read audio CD files from Apple
  597. CD ROM drives (well, some Apple CD ROM drives), but I'm not sure that it
  598. works with drives manufactured by other manufacturers (NEC, etc.).  Does
  599. anyone know if it is possible to use QuickTime to read audio files using
  600. a non-Apple CD ROM drive?
  601.  
  602. And as far as using QuickTime goes, it works, but it's kind of indirect.
  603. Has anyone played around with writing a device driver that allows the audio
  604. tracks to be read directly?  I know there would be all kinds of nuisance
  605. problems with it, but it should be possible.  Anybody listening on this
  606. one?  I'd be willing to give it a try if I could get some info about the
  607. SCSI commands that allow reading of data from the audio part of the disk....
  608.  
  609. -Roy
  610.  
  611.  
  612.  
  613.  
  614. +++++++++++++++++++++++++++
  615.  
  616. >From paulcho@ionews.io.org (paulcho)
  617. Date: 26 Mar 1994 11:38:31 -0500
  618. Organization: Internex Online (io.org) Data: 416-363-4151  Voice: 416-363-8676
  619.  
  620. Article: 23239 of comp.sys.mac.programmer
  621. <bfitz@ACM.ORG> wrote:
  622. > How can I read the digital audio data from an audio CD in a usable
  623. > (mungeable) format? Ideally, I want to get 44Khz 16-bit stereo data which
  624. > I can then process myself (using custom soudn processing routines).
  625. > I did the trick about running MoviePlayer (on a PowerMacintosh 7100/66 with
  626. > a CD 300i), and using Open to convert a track from an audio CD into a
  627. > QuickTime movie. Now what? I found a utility called Movie2Snd that looks
  628. > like it's supposed to make an 'snd ' resource out of the soundtrack of a
  629. > QuickTime movie, but it fails on these (5 to 8 MB) movies.
  630. > It "looks" like all I need to do is
  631. >    OpenMovieFile()
  632. >     NewMovieFromFile()
  633. >     CloseMovieFile()
  634. >     PutMovieIntoTypedHandle()
  635.  
  636. PutMovieIntoTypedHandle work in RAM, you just ran out of memory.
  637.  
  638. > but the QuickTime documentaion is very vague about sample rates, sample
  639. > size, etc. Also, given that MoviePlayer turned a 4 minute sample into a
  640. > mere 5.3 MB file indicates that it is probably saving this as a mono 8-bit
  641. > 22.254 Khz sample. I really want the original 44Khz 16-bit data.
  642.  
  643. Look for the "options..." button in the StandPutFile after you
  644. press "Convert..." in the StandGetFile. You can chose 44Khz,
  645. 22Khz, 11 Khz, 8/16bit, mono/Stereo,selection start time and end
  646. time etc. in the Audio CD Import Options dialog.
  647.  
  648. > So, where do I go to find out how to get the audio data samples? Any
  649. > documents I can read? Anyone's brain I can pick? Favors to exchange?
  650. >    -- Brian Fitzgerald --
  651.  
  652. Anyway, try my DeskTopMovie program (part of MovieTrilogy
  653. available from sumex). You can import the movie and convert it to
  654. AIFF format. I tried on a 4:52 audio track and resulted in a 47MB
  655. file.
  656.  
  657. ________________________________________________________________
  658. Paul C.H. Ho   paulcho@io.org         Pink Elephant Technologies
  659. Paul_C.H._Ho@magic-bbs.corp.apple.com   74020.772@compuserve.com
  660.  
  661.  
  662.  
  663. +++++++++++++++++++++++++++
  664.  
  665. >From jwang@soda.berkeley.edu (James Wang)
  666. Date: 26 Mar 1994 21:53:15 GMT
  667. Organization: Computer Science Undergrad Assoc., UCBerkeley
  668.  
  669. In article <2n1nfo$m4n@ionews.io.org>, Roy Wood <rrwood@ionews.io.org> wrote:
  670.  
  671. >does anyone know if it is possible to use QuickTime to read audio files using
  672. >a non-Apple CD ROM drive?
  673.  
  674. it's not possible to digitize audio tracks from anything but an apple
  675. CD300, CD300i, or CD300+ using QuickTime 1.6.1.
  676.  
  677.  
  678. >And as far as using QuickTime goes, it works, but it's kind of indirect.
  679. >Has anyone played around with writing a device driver that allows the audio
  680. >tracks to be read directly?  I know there would be all kinds of nuisance
  681.  
  682. i read in MacUser that Disk-to-Disk is one commerical package
  683. that does this with good third-party drive support.
  684.  
  685.  
  686. +++++++++++++++++++++++++++
  687.  
  688. >From dspman@aol.com (DSPman)
  689. Date: 26 Mar 1994 23:09:02 -0500
  690. Organization: America Online, Inc. (1-800-827-6364)
  691.  
  692. I've read CD audio from a CD-300i into QuickTime movies but it's 
  693. screwed up.  The left and right channels intermittently switch.  
  694. I had heard that there was a bug in the ROMs or something.  Can 
  695. anyone confirm this?  Will Apple fix this?
  696. I expected to do this with my 840av but something is wrong.
  697.  
  698. George Warner
  699. warnergt@aloft.att.com
  700.  
  701.  
  702. +++++++++++++++++++++++++++
  703.  
  704. >From Manuel Veloso <veloso@netcom.com>
  705. Date: Sun, 27 Mar 1994 23:18:16 GMT
  706. Organization: Ibex Productions
  707.  
  708. In article <2mq6cn$jr5@hopper.acm.org> , bfitz@ACM.ORG writes:
  709. >How can I read the digital audio data from an audio CD in a usable
  710. >(mungeable) format? Ideally, I want to get 44Khz 16-bit stereo data which
  711. >I can then process myself (using custom soudn processing routines).
  712.  
  713. There was a code snippet posted to alt.sources.mac that let
  714. you suck audio straight from the CD into a file. I'm not
  715. sure where the archives are, but it's up there.
  716.  
  717. +++++++++++++++++++++++++++
  718.  
  719. >From mxmora@unix.sri.com (Matt Mora)
  720. Date: 28 Mar 1994 13:41:37 -0800
  721. Organization: SRI International, Menlo Park, CA
  722.  
  723. In article <2n1nfo$m4n@ionews.io.org> rrwood@ionews.io.org (Roy Wood) writes:
  724.  
  725. >Has anyone played around with writing a device driver that allows the audio
  726. >tracks to be read directly?  I know there would be all kinds of nuisance
  727. >problems with it, but it should be possible.  Anybody listening on this
  728. >one?  I'd be willing to give it a try if I could get some info about the
  729. >SCSI commands that allow reading of data from the audio part of the disk....
  730.  
  731. I believe Apple has already written one. It documented in a tech note.
  732. You make calls to the driver to control the cd rom drive. I'm using it
  733. in my cd application. The code to start you off is on the developer CD.
  734.  
  735. Xavier
  736.  
  737.  
  738.  
  739.  
  740.  
  741. -- 
  742. ___________________________________________________________
  743. Matthew Xavier Mora                       Matt_Mora@sri.com
  744. SRI International                       mxmora@unix.sri.com
  745. 333 Ravenswood Ave                    Menlo Park, CA. 94025
  746.  
  747. ---------------------------
  748.  
  749. >From ldo@waikato.ac.nz (Lawrence D'Oliveiro, Waikato University)
  750. Subject: I crashed a Power Mac!
  751. Date: 23 Mar 94 16:43:47 +1300
  752. Organization: University of Waikato, Hamilton, New Zealand
  753.  
  754. People, I have managed, without really trying, to write and distribute a
  755. PowerMac-incompatible program.
  756.  
  757. Get your FTP self over to Sumex and pick up the file
  758.  
  759.     info-mac/disk/fix-icons.hqx
  760.  
  761. (or something like that). That program completely goes off into the weeds on
  762. a 6100/60. I just tried sending an update, and it was (quite rightly) rejected
  763. by one of the moderators, as it appears they are now testing submissions on
  764. a Power Mac. But of course the existing version already in the archive has
  765. the same problem.
  766.  
  767. And you know what the problem is? I'm calling InitFonts before InitGraf.
  768. I don't know *where* I got the idea that this was the right thing to do--I
  769. just checked Inside Mac Vol I, and I am WRONG. Yet I've been doing this for
  770. goodness knows how long, and I *never* got a crash on any other Mac before.
  771. Never.
  772.  
  773. Gee, I feel so embarrassed about such an elementary stuffup...
  774.  
  775. Lawrence D'Oliveiro                       fone: +64-7-856-2889
  776. Info & Tech Services Division              fax: +64-7-838-4066
  777. University of Waikato            electric mail: ldo@waikato.ac.nz
  778. Hamilton, New Zealand    37^ 47' 26" S, 175^ 19' 7" E, GMT+12:00
  779.  
  780. +++++++++++++++++++++++++++
  781.  
  782. >From wangd@CS.ColoState.EDU ( danny wang)
  783. Date: 23 Mar 94 05:42:55 GMT
  784. Organization: Colorado State University -- Computer Science Department
  785.  
  786. I have crashed a friend's PowerMac(gee I wish I had one) with ResEdit. Does
  787. that count as a real crash? I will be trying to do some more REAL software
  788. trials on that box pretty soon...ha, ha, ha. (evil grin)
  789.  
  790. --
  791. Intel is not even half of intelligence....
  792. *******************************************************************************
  793. There's no such thing as chance;                 wangd@CS.ColoState.EDU    
  794. And what to us seems merest accident             wang@lamar.ColoState.EDU
  795. Springs from the deepest source of destiny.      cs152bs1@lamar.ColoState.EDU 
  796.   --Johann Christoph Friedrich von Schiller      Just livin' in my SANITARIUM.
  797.     1759-1805
  798. *******************************************************************************
  799. Speak 68040 and carry a PowerPC 620....
  800.  
  801. +++++++++++++++++++++++++++
  802.  
  803. >From d88-jwa@mumrik.nada.kth.se (Jon Wdtte)
  804. Date: 23 Mar 1994 08:35:50 GMT
  805. Organization: Royal Institute of Technology, Stockholm, Sweden
  806.  
  807. In <1994Mar23.164347.26777@waikato.ac.nz> ldo@waikato.ac.nz (Lawrence D'Oliveiro, Waikato University) writes:
  808.  
  809. >And you know what the problem is? I'm calling InitFonts before InitGraf.
  810.  
  811. That's a result of the new ROMs (which you will see in 68k Macs as well)
  812. not of the PowerPC as such.
  813.  
  814. -- 
  815.  -- Jon W{tte, h+@nada.kth.se, Mac Hacker Deluxe --
  816.   "It was, in fact, cool as all get-out.  Fortunately it was a little
  817.    too late (historically speaking) to be groovy."
  818.                      -- Dennis Pelton
  819.  
  820. +++++++++++++++++++++++++++
  821.  
  822. >From jwbaxter@olympus.net (John W. Baxter)
  823. Date: Wed, 23 Mar 1994 10:30:08 -0800
  824. Organization: Internet for the Olympic Peninsula
  825.  
  826. In article <1994Mar23.054255.19492@yuma>, wangd@CS.ColoState.EDU ( danny
  827. wang) wrote:
  828.  
  829. > I have crashed a friend's PowerMac(gee I wish I had one) with ResEdit. Does
  830. > that count as a real crash? I will be trying to do some more REAL software
  831. > trials on that box pretty soon...ha, ha, ha. (evil grin)
  832.  
  833. You probably only appeared to crash the Power Mac with ResEdit.  For a long
  834. time, the Memory Manager has been quietly helping developers by fixing some
  835. of their dumb errors (because there were far too many broken applications
  836. not to).  Some future Memory Manager will stop helping (and speed up as a
  837. result).  With the Power Mac, we see a step along the way:  if a debugger
  838. is installed, the Memory Manager does a user break, saying something like
  839. "Access Fault".  If you say to continue (G command in MacsBug), processing
  840. continues, with the old fix-up code executed.
  841.  
  842. This is supposed to encourage developers (who really should have a debugger
  843. <grin>) to fix their code.
  844.  
  845. As it happens, one of the broken applications is ResEdit 2.1.1
  846.  
  847. [If you only have half of the debugging installed (the "nub" but no
  848. low-level debugger) you get a 30-second freeze while the nub looks madly
  849. for a debugger, then the nub presses on.]
  850. -- 
  851. John Baxter    Port Ludlow, WA, USA  [West shore, Puget Sound]
  852.    jwbaxter@pt.olympus.net
  853.  
  854. +++++++++++++++++++++++++++
  855.  
  856. >From ldo@waikato.ac.nz (Lawrence D'Oliveiro, Waikato University)
  857. Date: 24 Mar 94 10:47:51 +1300
  858. Organization: University of Waikato, Hamilton, New Zealand
  859.  
  860. How about this for the smallest program that will crash a PowerMac, but
  861. run OK on a 68K Mac:
  862.  
  863.     #include <Fonts.h>
  864.  
  865.     void main(void)
  866.       {
  867.     InitFonts();
  868.       }
  869.  
  870. (OK, so it doesn't actually do anything, so what did you expect.)
  871.  
  872. Here's the compiled version, if you want to try it:
  873.  
  874. (This file must be converted with BinHex 4.0)
  875.  
  876.  
  877.  
  878.  
  879.  
  880.  
  881.  
  882.  
  883.  
  884.  
  885.  
  886.  
  887.  
  888.  
  889.  
  890.  
  891.  
  892.  
  893.  
  894.  
  895.  
  896.  
  897.  
  898. Let me know how it works for you!
  899.  
  900. Lawrence D'Oliveiro                       fone: +64-7-856-2889
  901. Info & Tech Services Division              fax: +64-7-838-4066
  902. University of Waikato            electric mail: ldo@waikato.ac.nz
  903. Hamilton, New Zealand    37^ 47' 26" S, 175^ 19' 7" E, GMT+12:00
  904.  
  905. +++++++++++++++++++++++++++
  906.  
  907. >From nagle@netcom.com (John Nagle)
  908. Date: Thu, 24 Mar 1994 00:11:10 GMT
  909. Organization: NETCOM On-line Communication Services (408 241-9760 guest)
  910.  
  911. wangd@CS.ColoState.EDU ( danny wang) writes:
  912. >I have crashed a friend's PowerMac(gee I wish I had one) with ResEdit. Does
  913. >that count as a real crash? I will be trying to do some more REAL software
  914. >trials on that box pretty soon...ha, ha, ha. (evil grin)
  915.  
  916.    It's not a protected mode system.  It's a Macintosh.  Crashes just like
  917. a Macintosh.  That's Apple's idea of a feature.
  918.  
  919.                     John Nagle
  920.  
  921. +++++++++++++++++++++++++++
  922.  
  923. >From d88-jwa@mumrik.nada.kth.se (Jon Wdtte)
  924. Date: 24 Mar 1994 09:12:19 GMT
  925. Organization: The Royal Institute of Technology
  926.  
  927. In <1994Mar24.104751.26808@waikato.ac.nz> ldo@waikato.ac.nz (Lawrence D'Oliveiro, Waikato University) writes:
  928.  
  929. >How about this for the smallest program that will crash a PowerMac, but
  930. >run OK on a 68K Mac:
  931. >    #include <Fonts.h>
  932. >    void main(void)
  933. >      {
  934. >    InitFonts();
  935. >      }
  936.  
  937. It is, of course, incorrect according to IM. It won't run
  938. on an ordinary Mac running Discipline.
  939. -- 
  940.  -- Jon W{tte, h+@nada.kth.se, Mac Hacker Deluxe --
  941.     Not speaking for IBM.
  942.  
  943. +++++++++++++++++++++++++++
  944.  
  945. >From pottier@fregate.ens.fr (Francois Pottier)
  946. Date: 24 Mar 1994 12:39:37 GMT
  947. Organization: Ecole Normale Superieure, PARIS, France
  948.  
  949. In article <jwbaxter-230394103008@ptpm009.olympus.net>,
  950. John W. Baxter <jwbaxter@olympus.net> wrote:
  951.  
  952. >result).  With the Power Mac, we see a step along the way:  if a debugger
  953. >is installed, the Memory Manager does a user break, saying something like
  954. >"Access Fault".  If you say to continue (G command in MacsBug), processing
  955. >continues, with the old fix-up code executed.
  956.  
  957. Could you be more precise ? Exactly when does an "Access Fault" happen, and
  958. in what way should current code be fixed ?
  959.  
  960. -- 
  961. Francois Pottier            ___ ___  _    _  / ___  ___    ___
  962. pottier@dmi.ens.fr       /_  /__/ /_|  /| / /  / /  / / /__
  963.               /   / \  /  | / |/ /___ /__/ / ___/ _
  964.                           /
  965.  
  966. +++++++++++++++++++++++++++
  967.  
  968. >From Manuel Veloso <veloso@netcom.com>
  969. Date: Sat, 26 Mar 1994 05:51:51 GMT
  970. Organization: Ibex Productions
  971.  
  972. In article <2ms1m9$5ao@nef.ens.fr> Francois Pottier, pottier@fregate.ens.fr writes:
  973. >Could you be more precise ? Exactly when does an "Access Fault" happen, and
  974. >in what way should current code be fixed ?
  975.  
  976. It was something about one of the exception vectors doing a stripaddress/retry
  977. on a non-24-bit clean address (ie: if an illegal address exception was
  978. caused, the vector would strip and retry). It's in one of the new
  979. tech notes somewhere.
  980.  
  981. +++++++++++++++++++++++++++
  982.  
  983. >From ldo@waikato.ac.nz (Lawrence D'Oliveiro, Waikato University)
  984. Date: 28 Mar 94 10:09:16 +1300
  985. Organization: University of Waikato, Hamilton, New Zealand
  986.  
  987. In article <2mrlhj$8j4@news.kth.se>, d88-jwa@mumrik.nada.kth.se (Jon Wdtte) writes:
  988. > In <1994Mar24.104751.26808@waikato.ac.nz> ldo@waikato.ac.nz (Lawrence D'Oliveiro, Waikato University) writes:
  989. >
  990. >>How about this for the smallest program that will crash a PowerMac, but
  991. >>run OK on a 68K Mac:
  992. >>    #include <Fonts.h>
  993. >>    void main(void)
  994. >>      {
  995. >>    InitFonts();
  996. >>      }
  997. >
  998. > It is, of course, incorrect according to IM. It won't run
  999. > on an ordinary Mac running Discipline.
  1000.  
  1001. Yeah, but lots of release software (including some from Apple!) won't run
  1002. under Discipline, am I right? So I'm not sure if that really counts... :-)
  1003.  
  1004. (By the way, Jon, can you stop e-mailing me copies of your postings? One copy
  1005. of your wisdom is enough. Thanks!)
  1006.  
  1007. Lawrence D'Oliveiro                       fone: +64-7-856-2889
  1008. Info & Tech Services Division              fax: +64-7-838-4066
  1009. University of Waikato            electric mail: ldo@waikato.ac.nz
  1010. Hamilton, New Zealand    37^ 47' 26" S, 175^ 19' 7" E, GMT+12:00
  1011.  
  1012. +++++++++++++++++++++++++++
  1013.  
  1014. >From ez006626@othello.ucdavis.edu (David Xavier Clancy)
  1015. Date: Mon, 28 Mar 1994 07:19:12 GMT
  1016. Organization: University of California, Davis
  1017.  
  1018. danny wang (wangd@CS.ColoState.EDU) wrote:
  1019. : I have crashed a friend's PowerMac(gee I wish I had one) with ResEdit. Does
  1020. : that count as a real crash? I will be trying to do some more REAL software
  1021. : trials on that box pretty soon...ha, ha, ha. (evil grin)
  1022.  
  1023. ResEdit Crashes rather nicetly on a 68k mac too.  In fact, it's good if it
  1024. crashes in the same places/conditions.
  1025.  
  1026. --xav
  1027.  
  1028.  
  1029. +++++++++++++++++++++++++++
  1030.  
  1031. >From "Donpaul C. Stephens" <deathbird+@CMU.EDU>
  1032. Date: Mon, 28 Mar 1994 08:01:31 -0500
  1033. Organization: Senior, Electrical and Computer Engineering, Carnegie Mellon, Pittsburgh, PA
  1034.  
  1035. According to the article in BYTE magazine,
  1036. the Virtual Memory in the Power Macintosh line is implemented w/ Read
  1037. only and Read/Write blocks. The read only blocks <ie program code>
  1038. cannot be altered. The R/W blocks can be altered by any stray program
  1039. until Apple expands the services of the nano-kernel
  1040.  
  1041. the nano-kernel is the Hardware Abstraction Layer [HAL] on which the
  1042. system runs. It is the only code that runs in supervisor mode in PowerMac
  1043. the rest, incl the OS runs in User mode [it probably makes it easier to
  1044. emulate the 680x0 in the system if it is a user process like the rest
  1045.  
  1046. The article then explains why the 680x0 macs are as crash prone as
  1047. windows: everything runs in Supervisor Mode
  1048.  
  1049. No, its not a feat to crash a Power Mac <it is harder to do than in a
  1050. 680x0 mac however>. But I wouldn't expect the OS to kill stray processes
  1051. for any memory violations until 1Q 95, when system 8 is rumored to be
  1052. released
  1053.  
  1054. ---------------------------
  1055.  
  1056. >From bdiamand@netcom.com (Ben Diamand)
  1057. Subject: Multiple HD Reads, can it be done?
  1058. Date: Thu, 17 Mar 1994 18:48:52 GMT
  1059. Organization: NETCOM On-line Communication Services (408 241-9760 guest)
  1060.  
  1061.  
  1062. I'm pretty sure that the answer to this is 'no' for most Macs, but here 
  1063. goes anyway:  Can the pre-quadra Mac II's(IIci, SE/30) perform 
  1064. simultaneous(sp?) reads from different scsi devices on the same scsi 
  1065. chain.  As a further question, if I do ASYNC reads, will future Macs that 
  1066. can do this(assuming current ones cannot) work as expected?
  1067.  
  1068. Thanks!
  1069.  
  1070. Ben Diamand
  1071. bdiamand@netcom.com
  1072. ALINK:bdiamand
  1073.  
  1074. +++++++++++++++++++++++++++
  1075.  
  1076. >From rang@winternet.mpls.mn.us (Anton Rang)
  1077. Date: 27 Mar 1994 21:56:57 GMT
  1078. Organization: Minnesota Angsters
  1079.  
  1080. In article <764568523.AA03331@psybbs.durham.nc.us> Ben.Diamand%f1.n3641.z1@psybbs.durham.nc.us (Ben Diamand) writes:
  1081. >I'm pretty sure that the answer to this is 'no' for most Macs, but here 
  1082. >goes anyway:  Can the pre-quadra Mac II's(IIci, SE/30) perform 
  1083. >simultaneous(sp?) reads from different scsi devices on the same scsi 
  1084. >chain.
  1085.  
  1086.   The old SCSI manager does not support interleaved access to multiple
  1087. devices on one SCSI chain.  (So the answer is, "No.")
  1088.  
  1089. >As a further question, if I do ASYNC reads, will future Macs that 
  1090. >can do this(assuming current ones cannot) work as expected?
  1091.  
  1092.   Well, the new SCSI manager (4.3) does support interleaved access, so
  1093. you can get to more than one device at a time.
  1094.  
  1095.   But your comment on async reads leads me to believe that you're
  1096. really talking about disk drivers.  (Are you using Read(), or
  1097. SCSIRead()?)
  1098.  
  1099.   Disk drivers follow basically the same laws; if you try to do an
  1100. asynchronous read, and you're on a pre-4.3 machine or have a pre-4.3
  1101. driver, it will complete synchronously.  However, if you have a 4.3
  1102. machine and a 4.3 driver, *or* an accelerator which supports
  1103. asynchronous i/o, then an asynchronous read will work as you expect,
  1104. as long as you're doing direct i/o to the driver.
  1105.  
  1106.   Yet another caveat.  If you're going through the current file
  1107. system, you can only have one I/O pending at a time, so you can only
  1108. access one disk at a time, even if all the other conditions are OK for
  1109. doing things asynchronously.  (As far as I know, anyway...anyone know
  1110. differently?)
  1111. --
  1112. Anton Rang (rang@winternet.mpls.mn.us)
  1113.  
  1114. ---------------------------
  1115.  
  1116. >From long@mcntsh.enet.dec.com (Rich Long)
  1117. Subject: PBDTGetAPPL on a network volume?
  1118. Date: 20 MAR 94 15:16:46
  1119. Organization: Digital Equipment Corporation
  1120.  
  1121.  
  1122. I have some code that is using PBDTGetAPPL against all mounted volumes in
  1123. order to see if the owner of a given creator code is present. This works fine
  1124. except for a disk that is mounted from a System 7 server. PBDTGetAPPL for this
  1125. volume returns a -43 error instead of the afpItemNotFound I might expect. The
  1126. documentation is not very helpful -- any ideas? ( I am checking the
  1127. hasDesktopMgr bit and PBDTGetPath returns no errors ).
  1128.  
  1129. Thanks,
  1130. Rich
  1131.  
  1132. +++++++++++++++++++++++++++
  1133.  
  1134. >From Tim S. <tim_swihart@quickmail.apple.com>
  1135. Date: Mon, 28 Mar 1994 19:41:26 GMT
  1136. Organization: System Updates
  1137.  
  1138. In article <2mib3e$ph9@nntpd.lkg.dec.com> Rich Long, long@mcntsh.enet.dec.com
  1139. writes:
  1140. >I have some code that is using PBDTGetAPPL against all mounted volumes in
  1141. >order to see if the owner of a given creator code is present. This works fine
  1142. >except for a disk that is mounted from a System 7 server. PBDTGetAPPL for this
  1143. >volume returns a -43 error instead of the afpItemNotFound I might expect. The
  1144. >documentation is not very helpful -- any ideas? ( I am checking the
  1145. >hasDesktopMgr bit and PBDTGetPath returns no errors ).
  1146. >
  1147. >Thanks,
  1148. >Rich
  1149.  
  1150.  
  1151. I had a similar problem when writing BNDL Banger - you have to special case
  1152. servers and use AppleTalk calls instead.  I special cased them and ignored
  1153. them (since servers typically don't let users have enough privs to munge in
  1154. their desktop databases and that's BNDL Banger's sole reason for existing). 
  1155. You'll need to wade through the AppleTalk headers/docs...
  1156.  
  1157.  
  1158. Hope that helps,
  1159. Tim S.
  1160. My opinions are my own. They're my feet and I'll put them in my mouth if I
  1161. want to. Do not expose to open flame. Some Assembly required. Remove before
  1162. flight. Under penalty of law, do not remove this tag. Caution, contains silica
  1163. gel, do not eat.  Do not read while operating a motor vehicle or heavy
  1164. equipment. In case of eye contact, flush with water.  This supersedes all
  1165. previous notices.
  1166.  
  1167. ---------------------------
  1168.  
  1169. >From quinn@cs.uwa.edu.au (Quinn "The Eskimo!")
  1170. Subject: PEF, XCOFF Info Wanted
  1171. Date: Mon, 28 Mar 1994 09:45:16 +0800
  1172. Organization: Department of Computer Science, The University of Western Australia
  1173.  
  1174. In article <2mv3b4$oa2@news.kth.se>, d88-jwa@mumrik.nada.kth.se (Jon
  1175. Wdtte) wrote:
  1176.  
  1177. >You should remove the cfrg resource if you remove the data fork PEF.
  1178.  
  1179. Talking about PEF... (:  Where can I find a good description of the
  1180. internals of the PEF and XCOFF file formats?
  1181. -- 
  1182. Quinn "The Eskimo!"      <quinn@cs.uwa.edu.au>     "Support HAVOC!"
  1183. Department of Computer Science, The University of Western Australia
  1184.  
  1185. +++++++++++++++++++++++++++
  1186.  
  1187. >From platypus@cirrus.som.cwru.edu (Gary Kacmarcik)
  1188. Date: 28 Mar 1994 03:15:46 GMT
  1189. Organization: Case Western Reserve University, Cleveland, Ohio (USA)
  1190.  
  1191.  
  1192. In article <quinn-280394094516@eriodon.cs.uwa.oz.au> quinn@cs.uwa.edu.au (Quinn "The Eskimo!") writes:
  1193. >
  1194. > Talking about PEF... (:  Where can I find a good description of the
  1195. > internals of the PEF and XCOFF file formats?
  1196.  
  1197. if you want a Q&D description, you can probably get a good idea from the
  1198. DumpPEF and DumpXCOFF MPW tools.
  1199.  
  1200. if you want a "complete" description of PEF, you need to license it from
  1201. Apple.
  1202.  
  1203. if you want more info about XCOFF, you can get the O'Reilly book
  1204. "Understanding and Using COFF" (Gintaras R. Gircys), and try to get some
  1205. of the headers from an RS/6000.  XCOFF is based on COFF, so the book'll
  1206. get you most of the way there.  IBM also has a book that describes the
  1207. XCOFF format, but i don't have the reference handy.
  1208.  
  1209. -gary j kacmarcik
  1210. platypus@curie.ces.cwru.edu
  1211.  
  1212. ---------------------------
  1213.  
  1214. >From mdtaylor@apple.com (Mark Taylor)
  1215. Subject: QuickDraw Question
  1216. Date: Tue, 22 Mar 1994 18:18:03 GMT
  1217. Organization: Apple Computer, Inc.
  1218.  
  1219. Greetings,
  1220.  
  1221. I have a very irritating QuickDraw problem which I'm hoping someone can
  1222. advise me about.  It could be it's hopeless...
  1223.  
  1224. In my app, I put up a marquee as a target "zone" for dragging and dropping.
  1225. The marquee is circular, so I xor a FrameOval to create it.  Unfortunately,
  1226. whenever my custom cursor is within the oval, the image of the cursor is
  1227. alternately hidden and shown.  To the user this looks like a vibrating
  1228. cursor.
  1229.  
  1230. I've tried using a region to draw the marquee with the same result.  I've
  1231. also
  1232. done the marquee as a rectangle (as a test) and the problem goes away -
  1233. however, I really need a circular target - not a rectangle.
  1234.  
  1235. I'm guessing that QuickDraw obscures the cursor during drawing if the
  1236. cursor is
  1237. within an oval or region.  Does this sound right?  Is this true?  If so, is
  1238. there anyway to defeat this?
  1239.  
  1240. Hope someone can help!
  1241.  
  1242. Mark
  1243.  
  1244. +++++++++++++++++++++++++++
  1245.  
  1246. >From KLUEV@jonathan.srcc.msu.su
  1247. Date: Sat, 26 Mar 1994 16:15:14 +0300
  1248. Organization: (none)
  1249.  
  1250. In article <mdtaylor-220394101803@17.142.0.47>
  1251. mdtaylor@apple.com (Mark Taylor) writes:
  1252. >In my app, I put up a marquee as a target "zone" for dragging and dropping.
  1253. >The marquee is circular, so I xor a FrameOval to create it.  Unfortunately,
  1254. >whenever my custom cursor is within the oval, the image of the cursor is
  1255. >alternately hidden and shown.  To the user this looks like a vibrating
  1256. >cursor.
  1257. >I've tried using a region to draw the marquee with the same result.  I've
  1258. >also
  1259. >done the marquee as a rectangle (as a test) and the problem goes away -
  1260. >however, I really need a circular target - not a rectangle.
  1261. >I'm guessing that QuickDraw obscures the cursor during drawing if the
  1262. >cursor is
  1263. >within an oval or region.  Does this sound right?  Is this true?  If so, is
  1264. >there anyway to defeat this?
  1265.  
  1266.   QuickDraw always Shield/Show cursor when it is drawing onscreen or
  1267. copying from screen. The actual hiding of cursor occurred only if
  1268. drawing can disturb cursor (i.e. drawing's and cursor's rects overlap).
  1269. This vibrating cursor doesn't go away in case of rects, but QD
  1270. draws rects much more faster than ovals or regions. A little could
  1271. be done about this flickering.
  1272.  
  1273.   One way to minimize this flickering is to minimize your drawing.
  1274. 1.Don't 'move' marquees, stop them.
  1275. 2.Draw only when user moves mouse.
  1276. 3.When you need to draw, do a minimal number of QD calls.
  1277.   (Finder does this.). So, if you are doing something like that:
  1278.  
  1279.  "PenMode (xor)
  1280.   FrameRgn (Old)  - To show first Rgn
  1281. Whenever user moves mouse:
  1282.   FrameRgn (Old) - To erase old
  1283.   FrameRgn (New) - To draw new" (2 QD operations).
  1284.  
  1285. try to change your code to something like this:
  1286.  
  1287.  "PenMode (xor)
  1288.   CopyRgn (Old, Temp);
  1289.   InsetRgn (Temp, 1, 1);
  1290.   XorRgn (Old, Temp, Old); - To create one pixel "outline" region.
  1291.  
  1292.   PaintRgn (Old); - To show first
  1293. Whenever user moves mouse:
  1294.   /* Create New Rgn using the same tehnique as Old. */
  1295.   XorRgn (Old, New, Temp); - Some preparation
  1296.   PaintRgn (Temp); - Makes all drawing" (1 QD operation).
  1297.  
  1298. If you want to do this with ovals, just convert them to regions.
  1299.  
  1300. This should reduce cursor flickering.
  1301.  
  1302. Michael Kluev.
  1303.  
  1304. +++++++++++++++++++++++++++
  1305.  
  1306. >From kenlong@netcom.com (Ken Long)
  1307. Date: Sun, 27 Mar 1994 00:05:06 GMT
  1308. Organization: NETCOM On-line Communication Services (408 241-9760 guest)
  1309.  
  1310. Quickdraw probably obscures the cursor in such areas unless you tell it 
  1311. otherwise.  In Color It 2.3, if you make a selection, and move the cursor 
  1312. within the bounds of the region, it changes to a mirror image of the 
  1313. standard arrow cursor to facilitate dragging the selection.
  1314.  
  1315. Therefore, in order to track down source for such goings on, my approach 
  1316. would be to get some which does, or may do, this.
  1317.  
  1318. First choice would be C source - Pascal if no C could be found.
  1319.  
  1320. Logical downloadable targets:  DTS-Draw (Apple ftp).  Get the source and 
  1321. do a SerchFiles 1.3 search for the string "cursor."  It may be prudent to 
  1322. run the project and see if the cursor (a) is visible within a selection, 
  1323. (b) changes if so.
  1324.  
  1325. Alternative choice:  Image 1.49 or better.  Get the built app and test as 
  1326. before.  If it does what you want, get the current source and do the 
  1327. string search to track down the routines.
  1328.  
  1329. A knowledgeable programmer could probably just give you a fragment or 
  1330. snippet.  But if you had no one to ask for a fast answer, string searches 
  1331. of running C source are so fast they are almost instantaneous.
  1332.  
  1333. -Ken-
  1334.  
  1335. ---------------------------
  1336.  
  1337. >From deway@css.itd.umich.edu (Doug Way)
  1338. Subject: Quickdraw Blend Function Inaccurate?
  1339. Date: 23 Mar 1994 22:41:03 GMT
  1340. Organization: University of Michigan ITD/User Services
  1341.  
  1342. Does anyone out there know if there are any innaccuracies with Quickdraw's
  1343. blend function?  That is, the process of blending two colors together by
  1344. using PenMode(blend) and drawing one color on top of another?  (I seem
  1345. to vaguely remember someone talking about this here long ago, so if this
  1346. is true, please post!)
  1347.  
  1348. I'm trying to write a game which displays objects being reflected on a
  1349. colored surface.  The simplest way to do this seemed to be to draw with
  1350. PenMode(blend) so that the object colors and surface colors are blended
  1351. together to simulate a reflection.  I know that Quickdraw uses the
  1352. function:
  1353.  
  1354.                  weight * sourceColor + (65535 - weight) * destColor
  1355. blendedColor  =  ---------------------------------------------------
  1356.                                       65535
  1357.  
  1358. This function determines the blend for each of the red, green and blue
  1359. components, where weight is a number between 0 and 65535.  When it
  1360. determines the RGB values of the blended color, Quickdraw then (presumably)
  1361. looks up the closest color in the palette which matches, and draws that
  1362. color.
  1363.  
  1364. This is where I seem to be having a problem.  I even went through the
  1365. trouble of setting up my own palette which would contain the exact colors
  1366. which would need to be blended.  But Quickdraw sometimes seems to pick
  1367. the wrong color as the blended color.  The color is not usually off by
  1368. more than 5 or 10%, but that's still pretty bad in my book.
  1369.  
  1370. Here's a more concrete example.  If I have:
  1371.  
  1372. sourceColor.red   = 35000      and      destColor.red   = 45000
  1373. sourceColor.green =  7000               destColor.green = 12000
  1374. sourceColor.blue  = 12000               destColor.blue  = 17000
  1375.  
  1376. and the blend weight = 8000
  1377.  
  1378. then the blended color should be:
  1379.  
  1380. blendedColor.red   = 43800
  1381. blendedColor.green = 11400
  1382. blendedColor.blue  = 16400
  1383.  
  1384. So, early on in my program I add these three colors to the palette (along
  1385. with a bunch of others).  I then draw the destination color (destColor)
  1386. on the screen.  The PenMode is then set to blend (w/ weight = 8000), and
  1387. the source color is drawn on top of the destColor.  For some reason, the
  1388. resulting color is still the destColor, not the blendedColor it should be.
  1389. I know the blended color is available in the color table, because I can
  1390. use RGBForeColor (or PMForeColor) to set it and draw it somewhere else
  1391. on the screen.
  1392.  
  1393. (Hmmm, I just remembered that I'm doing this on an offscreen pixmap, but
  1394. this shouldn't be a problem since both offscreen and onscreen pixmaps
  1395. have the same .pmTable color table.)
  1396.  
  1397. Well, any ideas?  I realize there may be some quirk in my code which is
  1398. causing this, but I wanted to see if anyone knew about any known problems
  1399. before I went on an all-out effort to isolate the problem.  I'll gladly
  1400. give credit in my game to anyone who can help out.  Thanks!
  1401.  
  1402.  
  1403. /---------------DISCLAIMER:----My opinions are, remarkably, exactly the----\
  1404. |                              same as those of my employer.  In fact,     |
  1405. |   Doug Way     (Bebound!)    I am merely a mouthpiece through which      |
  1406. \---deway@css.itd.umich.edu----their collective thoughts pass unaltered.---/
  1407.  
  1408. +++++++++++++++++++++++++++
  1409.  
  1410. >From lowry@shiva.eche.ualberta.ca (Brian Lowry)
  1411. Date: 24 Mar 1994 16:19:38 GMT
  1412. Organization: Chem Eng - Univ of Alberta
  1413.  
  1414. In article <2mqghv$s97@lastactionhero.rs.itd.umich.edu>,
  1415. deway@css.itd.umich.edu (Doug Way) wrote:
  1416.  
  1417. > Does anyone out there know if there are any innaccuracies with Quickdraw's
  1418. > blend function?  That is, the process of blending two colors together by
  1419. > using PenMode(blend) and drawing one color on top of another?
  1420.  
  1421. [details omitted]
  1422.  
  1423. > (Hmmm, I just remembered that I'm doing this on an offscreen pixmap, but
  1424. > this shouldn't be a problem since both offscreen and onscreen pixmaps
  1425. > have the same .pmTable color table.)
  1426.  
  1427.   How can a blend be accurate on a CLUT device?  The inverse colour table
  1428. is only five bits, so you're always going to have errors... A better
  1429. solution might be to use 24 bit GWorlds offscreen and then dither them to
  1430. the CLUT device, since this would have the added benefit of not making 16
  1431. and 24 bit users' screens look like 8 bit messes.
  1432.  
  1433. -- 
  1434.  
  1435. Brian Lowry
  1436.  
  1437. +++++++++++++++++++++++++++
  1438.  
  1439. >From lari@cs.unc.edu (Humayun Lari)
  1440. Date: 24 Mar 1994 16:01:28 -0500
  1441. Organization: The University of North Carolina at Chapel Hill
  1442.  
  1443. In article <lowry-240394082729@lowry.eche.ualberta.ca>,
  1444. Brian Lowry <lowry@shiva.eche.ualberta.ca> wrote:
  1445. >In article <2mqghv$s97@lastactionhero.rs.itd.umich.edu>,
  1446. >deway@css.itd.umich.edu (Doug Way) wrote:
  1447. >
  1448. >> Does anyone out there know if there are any innaccuracies with Quickdraw's
  1449. >> blend function?  That is, the process of blending two colors together by
  1450. >> using PenMode(blend) and drawing one color on top of another?
  1451. [snip]
  1452. >  How can a blend be accurate on a CLUT device?  The inverse colour table
  1453. >is only five bits, so you're always going to have errors... A better
  1454. >solution might be to use 24 bit GWorlds offscreen and then dither them to
  1455. >the CLUT device, since this would have the added benefit of not making 16
  1456. >and 24 bit users' screens look like 8 bit messes.
  1457.  
  1458. Doug, since the default inverse color table is 4-bit, you may want to try a
  1459. MakeITable(NULL, NULL, 5) to generate a 5-bit inverse table for the current
  1460. device. Check IM 5 for details -- I think the 5-bit inverse table requires
  1461. 32K, and MakeITable requires something like 79K just to work, so you need
  1462. to be slightly concerned about memory.
  1463.  
  1464. 'Course, this still won't be perfect, but it'll be better than the default.
  1465. Note that the problem with using 24-bit worlds is that dithering is slow
  1466. and can make 8-bit users' screens look messy. Experiment...
  1467.  
  1468. Humayun Lari
  1469. (lari@cs.unc.edu)
  1470.  
  1471.  
  1472. +++++++++++++++++++++++++++
  1473.  
  1474. >From deway@css.itd.umich.edu (Doug Way)
  1475. Date: 28 Mar 1994 06:25:10 GMT
  1476. Organization: University of Michigan ITD/User Services
  1477.  
  1478. Humayun Lari (lari@cs.unc.edu) wrote:
  1479. : Brian Lowry <lowry@shiva.eche.ualberta.ca> wrote:
  1480. : [snip]
  1481. : >  How can a blend be accurate on a CLUT device?  The inverse colour table
  1482. : >is only five bits, so you're always going to have errors... A better
  1483. : >solution might be to use 24 bit GWorlds offscreen and then dither them to
  1484. : >the CLUT device, since this would have the added benefit of not making 16
  1485. : >and 24 bit users' screens look like 8 bit messes.
  1486.  
  1487. : Doug, since the default inverse color table is 4-bit, you may want to try a
  1488. : MakeITable(NULL, NULL, 5) to generate a 5-bit inverse table for the current
  1489. : device. Check IM 5 for details -- I think the 5-bit inverse table requires
  1490. : 32K, and MakeITable requires something like 79K just to work, so you need
  1491. : to be slightly concerned about memory.
  1492.  
  1493. Thanks for the info.  After reading Brian's response, I went back & read
  1494. the Color Manager chapter of IM 5, and figured out that the 4-bit inverse
  1495. table was the problem.  (I'd been wasting my time looking in the Palette
  1496. Manager & Quickdraw chapters before.)  24-bit screens are not an option here,
  1497. since this is a high-speed game.  (Believe it or not, I'm getting 30 frames
  1498. per second on a IIsi drawing two (fairly small) objects with blended
  1499. reflections.)  In fact, 8 bits is plenty, because there is a small, fixed
  1500. number of colors in each object & in the reflecting wall, and I specifically
  1501. add the possible blending combinations to the palette ahead of time.
  1502.  
  1503. For example, if there are 10 colors in the objects, and 8 colors in the
  1504. wall, then there will be 10*8=80 possible blended colors which I precalculate
  1505. and add to the palette.  No need for 24 bits.  Although I do understand what
  1506. you mean about the color lookup being inaccurate anyway.
  1507.  
  1508. I'll try the 5-bit table.  That should descrease the inaccuracy by half,
  1509. so that may be good enough.  I noticed that IM 5 mentioned that it's
  1510. possible to create your own custom lookup table for even greater accuracy.
  1511. Is this at all practical?
  1512.  
  1513.  
  1514. /---------------DISCLAIMER:----My opinions are, remarkably, exactly the----\
  1515. |                              same as those of my employer.  In fact,     |
  1516. |   Doug Way     (Bebound!)    I am merely a mouthpiece through which      |
  1517. \---deway@css.itd.umich.edu----their collective thoughts pass unaltered.---/
  1518.  
  1519. ---------------------------
  1520.  
  1521. >From danprice@delphi.com
  1522. Subject: Read-Save Styled Text Code
  1523. Date: Sun, 27 Mar 94 17:17:20 -0500
  1524. Organization: Delphi (info@delphi.com email, 800-695-4005 voice)
  1525.  
  1526.  
  1527. I'm trying to get some read/save styled text code of mine to work but have
  1528. had NO success.  I was in a bookstore the other day and noticed that IM:TEXT
  1529. has such code, but I am only a poor student who doesn't have 40$ to shell.
  1530.  
  1531. Anybody have this code that tehy could mail me?  I'm using think Pascal.
  1532.  
  1533.     -dp
  1534.  
  1535.  
  1536. +++++++++++++++++++++++++++
  1537.  
  1538. >From mxmora@unix.sri.com (Matt Mora)
  1539. Date: 28 Mar 1994 13:49:33 -0800
  1540. Organization: SRI International, Menlo Park, CA
  1541.  
  1542. In article <xO-vpwg.danprice@delphi.com> danprice@delphi.com writes:
  1543. >I'm trying to get some read/save styled text code of mine to work but have
  1544. >had NO success.  I was in a bookstore the other day and noticed that IM:TEXT
  1545. >has such code, but I am only a poor student who doesn't have 40$ to shell.
  1546. >Anybody have this code that tehy could mail me?  I'm using think Pascal.
  1547.  
  1548.  
  1549. This should get you going.
  1550.  
  1551.     GetFNum('times', familyID);
  1552.     TextFont(familyID);
  1553.     Textsize(12);
  1554.  
  1555.     myTE := TEStylNew(r, r);  {important! I was using the old call duh:)}
  1556.     TextHandle := GetResource('TEXT', 128);
  1557.     StylHandle := stScrpHandle(GetResource('styl', 128));
  1558. {    TEInsert(TextHandle^, GetHandleSize(TextHandle), myTE);}
  1559. {    TESetSelect(0, $8000, myTE);}
  1560.  
  1561. {    SetStylHandle(StylHandle, myTE);}
  1562.     TEStylInsert(TextHandle^, GetHandleSize(TextHandle), StylHandle, myTE);
  1563. {TESetSelect(0, 0, myTE);}
  1564.     myTe^^.just := 1;
  1565.     TECalText(myTE);
  1566.     TEUpdate(r, myTE);
  1567.  
  1568.  
  1569. Xavier
  1570.  
  1571.  
  1572. -- 
  1573. ___________________________________________________________
  1574. Matthew Xavier Mora                       Matt_Mora@sri.com
  1575. SRI International                       mxmora@unix.sri.com
  1576. 333 Ravenswood Ave                    Menlo Park, CA. 94025
  1577.  
  1578. ---------------------------
  1579.  
  1580. >From cconstan@epdiv1.env.gov.bc.ca (Carl B. Constantine)
  1581. Subject: Try 3: Movie Credit Scrolling - How?
  1582. Date: Thu, 17 Mar 1994 10:04:43 -0800
  1583. Organization: Ministry of Environment, Lands & Parks
  1584.  
  1585. Sorry for the multiple posts (if your server recieved multiple posts) but
  1586. our NNTP server is having problems.
  1587.  
  1588. I would like to know how to do movie credit style scrolling like I have
  1589. seen in many people's about box's.  Can someone give me a code snippet or
  1590. anything like that?
  1591.  
  1592. Thanks in advance.
  1593.  
  1594.  
  1595. -- 
  1596. =========================================================================
  1597. Carl B. Constantine                      B.C. Environment, Lands & Parks
  1598. End-User Support Analyst                 CCONSTAN@epdiv1.env.gov.bc.ca
  1599.  
  1600. +++++++++++++++++++++++++++
  1601.  
  1602. >From kenlong@netcom.com (Ken Long)
  1603. Date: Fri, 18 Mar 1994 03:10:36 GMT
  1604. Organization: NETCOM On-line Communication Services (408 241-9760 guest)
  1605.  
  1606.  
  1607. There's some source for a program called "Words Alive" which has a 
  1608. "curtains" type thing in its about box.  It starts with a picture and 
  1609. then a pixel-at-a-time "curtain" raises (the picture goes up) revealing 
  1610. some more credits.
  1611.  
  1612. There are sideways auto-scrolling texts' which should not be hard to make 
  1613. vertical, like the "Marquee" stuff I recently posted (did I send you the 
  1614. file?).
  1615.  
  1616. I've got some source that scrolls up or down just by 
  1617. GetMouse-while-StillDown offset.  I was actually going to toss what I 
  1618. have on your server, but rework the project into a more diversified demo 
  1619. and then post it on a.s.m.
  1620.  
  1621. The basic trick is offsetting or scrolling (same difference) the rect. or 
  1622. rgn according to what you specify.  It can be via a key, the mouse or 
  1623. automatic.
  1624.  
  1625. I've got one Pascal project, where the about in a blank pDB, and a little 
  1626. line shows up, on center.  It gets bigger and you see that it's text.  It 
  1627. gets to 14pt and nicely fits into the box, hangs about 60, then keeps on 
  1628. zoomin' up closer ("").  Then the box closes.
  1629.  
  1630. That particular effect, in reverse, with a vertical (-) offset would be 
  1631. similar to the opening sequence in StarWars.
  1632.  
  1633. Also, the MSG demo, doing all it's wipes and other effects, may indicate 
  1634. an action to take.  But regarding text?  I don't know.
  1635.  
  1636. The one I have offsets text kinda like the "Grabber" tool.  Making it 
  1637. auto should be a snap.
  1638.  
  1639. -Ken-
  1640.  
  1641.  
  1642. +++++++++++++++++++++++++++
  1643.  
  1644. >From Kevin Marks <Kevin@pinner.demon.co.uk>
  1645. Date: Sat, 19 Mar 1994 17:46:06 GMT
  1646. Organization: Me
  1647.  
  1648. In article <cconstan-170394100443@eusacbc.env.gov.bc.ca> Carl B.
  1649. Constantine, cconstan@epdiv1.env.gov.bc.ca writes:
  1650. >I would like to know how to do movie credit style scrolling like I have
  1651. >seen in many people's about box's.  Can someone give me a code snippet or
  1652. >anything like that?
  1653.  
  1654. QuickTime's Text Tracks will do this automatically if you set a few
  1655. flags, but the docs are a bit flaky.
  1656. >From Carl.B..Constantine%f1.n3641.z1@psybbs.durham.nc.us (Carl B. Constantine)
  1657. Subject: Try 3: Movie Credit Scrolling - How?
  1658. Date: 17 Mar 94 23:04:43 GMT
  1659. Organization: (none)
  1660.  
  1661. Organization: Ministry of Environment, Lands & Parks
  1662.  
  1663. Sorry for the multiple posts (if your server recieved multiple posts) but
  1664. our NNTP server is having problems.
  1665.  
  1666. I would like to know how to do movie credit style scrolling like I have
  1667. seen in many people's about box's.  Can someone give me a code snippet or
  1668. anything like that?
  1669.  
  1670. Thanks in advance.
  1671.  
  1672.  
  1673. -- 
  1674. =========================================================================
  1675. Carl B. Constantine                      B.C. Environment, Lands & Parks
  1676. End-User Support Analyst                 CCONSTAN@epdiv1.env.gov.bc.ca
  1677.  
  1678. +++++++++++++++++++++++++++
  1679.  
  1680. >From paulcho@ionews.io.org (paulcho)
  1681. Date: 26 Mar 1994 11:28:54 -0500
  1682. Organization: Internex Online (io.org) Data: 416-363-4151  Voice: 416-363-8676
  1683.  
  1684.  
  1685.  
  1686. Kevin Marks <Kevin@pinner.demon.co.uk> wrote:
  1687. >QuickTime's Text Tracks will do this automatically if you set a few
  1688. >flags, but the docs are a bit flaky.
  1689.  
  1690. You can use my TextMovie program(part of MovieTrilogy availiable
  1691. on sumex) to create the QuickTime Text track movie. Then all you
  1692. have to do is load and play the movie.
  1693.  
  1694. ________________________________________________________________
  1695. Paul C.H. Ho   paulcho@io.org         Pink Elephant Technologies
  1696. Paul_C.H._Ho@magic-bbs.corp.apple.com   74020.772@compuserve.com
  1697.  
  1698.  
  1699. +++++++++++++++++++++++++++
  1700.  
  1701. >From zobkiw@datawatch.com (joe zobkiw)
  1702. Date: Mon, 28 Mar 1994 13:08:31 GMT
  1703. Organization: Datawatch Corporation
  1704.  
  1705. In article <2n1ns6$n0f@ionews.io.org>, paulcho@ionews.io.org (paulcho)
  1706. wrote:
  1707.  
  1708. > Kevin Marks <Kevin@pinner.demon.co.uk> wrote:
  1709. > >QuickTime's Text Tracks will do this automatically if you set a few
  1710. > >flags, but the docs are a bit flaky.
  1711. >  
  1712. > You can use my TextMovie program(part of MovieTrilogy availiable
  1713. > on sumex) to create the QuickTime Text track movie. Then all you
  1714. > have to do is load and play the movie.
  1715. >  
  1716.  
  1717. If al lyou want is scrolling credits just create a TEHandle in your window,
  1718. fill it with styled text from a resource, and TEScroll it...when it reaches
  1719. the end, reset your scroll position to the top. That's it! If you want
  1720. pictures, you can ScrollRect a PICT resource.
  1721.  
  1722. ___________________________________________________________
  1723. _/_/_/_/   Joe Zobkiw                                   ,,,
  1724.     _/     Senior Software Engineer                     - -
  1725.   _/       Datawatch Corporation                         L
  1726. _/_/_/_/   zobkiw@datawatch.com                          -
  1727.  
  1728. ---------------------------
  1729.  
  1730. >From rhn@netcom.com (Ron Nicholson)
  1731. Subject: making fat binaries question
  1732. Date: Wed, 23 Mar 1994 08:36:51 GMT
  1733. Organization: NETCOM On-line Communication Services (408 241-9760 guest)
  1734.  
  1735. I'm using the Metrowerks Codewarrior Gold DR1 compilers.  I've got both
  1736. the 68k and PPC versions of my applications working.  How do I take the
  1737. 2 applications and make a fat binary?  Do I need any special resources
  1738. not found in either of the 2 processor specific apps?  Or do I just
  1739. paste all the resources and the data fork of the PPC app together into
  1740. one big glob?  Is there a utility to do this?
  1741.  
  1742. Thanks,
  1743.  
  1744. Ron Nicholson        rhn@netcom.com
  1745. #include <std.disclaimer>
  1746. (hey, I'm just a hardware guy, doing software for fun.)
  1747.  
  1748. +++++++++++++++++++++++++++
  1749.  
  1750. >From jwbaxter@olympus.net (John W. Baxter)
  1751. Date: Wed, 23 Mar 1994 10:46:21 -0800
  1752. Organization: Internet for the Olympic Peninsula
  1753.  
  1754. In article <rhnCn3zxF.LwA@netcom.com>, rhn@netcom.com (Ron Nicholson)
  1755. wrote:
  1756.  
  1757. > I'm using the Metrowerks Codewarrior Gold DR1 compilers.  I've got both
  1758. > the 68k and PPC versions of my applications working.  How do I take the
  1759. > 2 applications and make a fat binary?  Do I need any special resources
  1760. > not found in either of the 2 processor specific apps?  Or do I just
  1761. > paste all the resources and the data fork of the PPC app together into
  1762. > one big glob?  Is there a utility to do this?
  1763.  
  1764. One method:
  1765. Build the 68K version.  Use the result (or a suitably named copy) as the
  1766. resource file when you build the ppc version.  [Note that the presence of
  1767. the 'cfrg' resource in that 68K version is likely to annoy the system if
  1768. you run the 68K version on a Power Mac.]
  1769.  
  1770. -- 
  1771. John Baxter    Port Ludlow, WA, USA  [West shore, Puget Sound]
  1772.    jwbaxter@pt.olympus.net
  1773.  
  1774. +++++++++++++++++++++++++++
  1775.  
  1776. >From rhn@netcom.com (Ron Nicholson)
  1777. Date: Sun, 27 Mar 1994 19:45:40 GMT
  1778. Organization: NETCOM On-line Communication Services (408 241-9760 guest)
  1779.  
  1780. In article <jwbaxter-230394104621@ptpm009.olympus.net>,
  1781. John W. Baxter <jwbaxter@olympus.net> wrote:
  1782. >
  1783. >One method:
  1784. >Build the 68K version.  Use the result (or a suitably named copy) as the
  1785. >resource file when you build the ppc version.  [Note that the presence of
  1786. >the 'cfrg' resource in that 68K version is likely to annoy the system if
  1787. >you run the 68K version on a Power Mac.]
  1788. >
  1789.  
  1790. OK, I used this method to build a fat binary.  The resulting file seems
  1791. to run just fine on both an SE/30 and a Power Mac (except for the fact it
  1792. runs 29 times faster on the 7100!)  But doesn't the 'cfrg' resource need
  1793. to be modified to indicate that the app is a fat binary and not just
  1794. a pcc only app?
  1795.  
  1796. Is there a way for a fat application to toggle or have the user select
  1797. whether to run in native or emulated mode on a Power Mac?
  1798.  
  1799. I have Codewarrior Gold, Develop 17 and the newest Macsbug.  What other
  1800. critical items might I need off of the Mac on Risc SDK in order to
  1801. build Power Mac apps correctly?
  1802.  
  1803. Thanks,
  1804. Ron Nicholson        rhn@netcom.com
  1805. #include <std.disclaimer>
  1806.  
  1807.  
  1808. ---------------------------
  1809.  
  1810. End of C.S.M.P. Digest
  1811. **********************
  1812.  
  1813.