home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Mac Game Programming Gurus / TricksOfTheMacGameProgrammingGurus.iso / Information / CSMP Digest / volume 1 / csmp-v1-129.txt < prev    next >
Encoding:
Text File  |  1994-12-08  |  36.4 KB  |  1,032 lines  |  [TEXT/R*ch]

  1. C.S.M.P. Digest             Thu, 02 Jul 92       Volume 1 : Issue 129
  2.  
  3. Today's Topics:
  4.  
  5.     What is a 'Bus error'?
  6.     System 7 crashes at weird times. New Virus?
  7.     Amusing MPW C v3.2 Error Messages
  8.     Serial i/o on the PB170?
  9.     screen shot program needed
  10.     How does Script Manager affect File Manager?
  11.     Sound hardware question
  12.     Caps-lock <=> Ctrl on the powerbook keyboard
  13.     Sound Channel Failure
  14.     Looking for Showinit
  15.  
  16.  
  17.  
  18. -------------------------------------------------------
  19.  
  20. From: ebido@bio.vu.nl (Etienne Bido)
  21. Subject: What is a 'Bus error'?
  22. Date: 29 May 92 11:54:46 GMT
  23. Organization: VU Biology, Amsterdam, The Netherlands
  24.  
  25. I just bought a Mac IIcx, a great machine, but I'm getting sick of
  26. all those 'Bus errors'. What is a bus error???
  27.  
  28. sysconfig:
  29. MacIIcx
  30. 20 MB RAM (so I'm running mode 32 to use them)
  31. 13" Apple rgb with apple display card
  32. system 7
  33.  
  34. I noticed that some of these errors dissapear when I turn mode32 off,
  35. but there are still to many bus errors left.
  36.  
  37. any info would be appreciated.
  38.  
  39. - -- 
  40. =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  41. Etienne Bido            || ebido@bio.vu.nl
  42. Vrye Universiteit        || bido@chem.vu.nl
  43. Amsterdam
  44.  
  45. +++++++++++++++++++++++++++
  46.  
  47. From: werner@cs.utexas.edu (Werner Uhrig)
  48. Date: 29 May 92 13:18:05 GMT
  49. Organization: CS Dept, University of Texas at Austin
  50.  
  51.  
  52.  ebido@bio.vu.nl (Etienne Bido) writes:
  53. > I just bought a Mac IIcx, a great machine, but I'm getting sick of
  54. > all those 'Bus errors'. What is a bus error???
  55.  
  56. >20 MB RAM (so I'm running mode 32 to use them)
  57. >system 7
  58.  
  59. >I noticed that some of these errors dissapear when I turn mode32 off,
  60. >but there are still to many bus errors left.
  61.  
  62.     a Bus Error is when a hardware bug encounters a software
  63.     bug in the pressence of too much RAM ....
  64.  
  65.     <chuckle>....
  66. - -- 
  67.   werner@cs.utexas.edu |  ..!uunet!cs.utexas.edu!werner | werner@UTXVM.bitnet
  68.  
  69.        "Free Advice and Opinions is our specialty.  Refunds Available"
  70.  
  71. +++++++++++++++++++++++++++
  72.  
  73. From: pegasus@leland.Stanford.EDU (Betty Lee)
  74. Date: 29 May 92 22:16:04 GMT
  75. Organization: Stanford University -- Electrical Engineering
  76.  
  77. ebido@bio.vu.nl (Etienne Bido) writes: 
  78.  
  79. + I just bought a Mac IIcx, a great machine, but I'm getting sick of
  80. + all those 'Bus errors'. What is a bus error???
  81. + I noticed that some of these errors dissapear when I turn mode32 off,
  82. + but there are still to many bus errors left.
  83.  
  84. Some bus errors happen when a program isn't 32-bit clean and you're running
  85. 32-bit mode.  Some happen (on my computer at least) when the program looks
  86. for a non-existant FPU.  Some just happen.  If you install Macsbug, you might
  87. get more explicit error messages.
  88.  
  89. - --
  90.          Betty Lee          | The main difference between a User and a Hacker:
  91.       P. O. Box 5748        |    A User buys a faster computer to spend 
  92.     Stanford, CA 94309      |    _less_ time with it.  Happy hacking!
  93. Pegasus@Leland.Stanford.EDU |                          -- From rec.humor.funny
  94.  
  95. +++++++++++++++++++++++++++
  96.  
  97. From: edw@caligula.cts.com (Ed Watkeys)
  98. Date: Sat, 30 May 92 19:57:16 EDT
  99. Organization: Distant Software
  100.  
  101.  
  102. In article <1992May29.221604.7005@leland.Stanford.EDU> (comp.sys.mac.system,comp.sys.mac.programmer), pegasus@leland.Stanford.EDU (Betty Lee) writes:
  103. > Some bus errors happen when a program isn't 32-bit clean and you're running
  104. > 32-bit mode.  Some happen (on my computer at least) when the program looks
  105. > for a non-existant FPU.  Some just happen.  If you install Macsbug, you might
  106. > get more explicit error messages.
  107.  
  108. Another nice way to get a bus error is to reference odd memory addresses --
  109. beware of pointer arithmetic!
  110.  
  111. Ed
  112.  
  113. - --
  114. Ed Watkeys, Sys Admin.  "...The errors of great men are more venerable
  115. Distant Software         because they are more fruitful than the truths
  116. edw@caligula.cts.com     of little men..."  -- Friedrich Nietzsche
  117.  
  118. +++++++++++++++++++++++++++
  119.  
  120. From: carl@udwarf.tymnet.com (Carl Baltrunas & Cherie Marinelli 1.5v4)
  121. Date: 1 Jun 92 10:13:35 GMT
  122. Organization: Catalyst Art
  123.  
  124.  
  125. In article <01050133.4r3kra@caligula.cts.com> (comp.sys.mac.system,comp.sys.mac.programmer), edw@caligula.cts.com (Ed Watkeys) writes:
  126. > In article <1992May29.221604.7005@leland.Stanford.EDU> (comp.sys.mac.system,comp.sys.mac.programmer), pegasus@leland.Stanford.EDU (Betty Lee) writes:
  127. > > 
  128. > > Some bus errors happen when a program isn't 32-bit clean and you're running
  129. > > 32-bit mode.  Some happen (on my computer at least) when the program looks
  130. > > for a non-existant FPU.  Some just happen.  If you install Macsbug, you might
  131. > > get more explicit error messages.
  132. > Another nice way to get a bus error is to reference odd memory addresses --
  133. > beware of pointer arithmetic!
  134. Ok... what I'd like to know is can anyone tell me what I should look at
  135. when a buss error occurs.  I'm running Macsbug, and my machine has had the
  136. infamous buss error many many times since I started using system 7.0.  I'm
  137. now running system 7.0 with tuneup 1.1.1 and I have had what seems to be
  138. the same couple of buss errors regardless of whether I have 32-bit on/off,
  139. whether I have VM on/off.
  140.  
  141. The errors all seem to be at -stripaddress +08C4 (or offset +08B4)... and
  142. from various extensions, mostly ATM 2.0.3 (which is supposed to be 32-bit
  143. clean).
  144.  
  145.   -stripaddress+08B4/  MOVEM.L  D0/A0,-(A7)
  146.  
  147.   -stripaddress+08C4/  MOVE.L   (A1),$0008(A6)
  148.                   A1/  FFFFFFFF
  149.                   A6/  00363DF8
  150.  
  151. I didn't record the registers from the first one listed here, but the
  152. second one appears to be referencing 'FFFFFFFF' which is not a longword
  153. address.  That MAY be THE problem... but, what I'm most confused about
  154. is that -stripaddress is in the kernel OS (or so I assume) and user progs
  155. would not be calling it directly... or would they? [Q: for c.s.m.programmer]
  156.  
  157. So what inside the OS keeps bombing?  Is there anything I should do, or can
  158. do to determine if it is the app that is running that is at fault, or some
  159. thing wrong in the OS/ROM?  Anyone know who I can send the info to if it
  160. will help Apple/Software-companies solve problems.
  161.  
  162. It seems sporadic... the same operation done in exactly the same way may
  163. cause the problem, yet again... it may not.  Sometimes it appears to be
  164. very reproduceable... (I have such a case now with a copy of Compactor 1.21
  165. but that might be solved by upgrading to the newest version of Compact Pro).
  166.  
  167. HELP?
  168.  
  169. - -Carl
  170.  
  171. Redirect followups to the appropriate place, but I usually only have time
  172. for c.s.m.system and not c.s.m.programmer.  E-mail is fine, and c.s.m.system
  173. if others are interested and can help out.
  174.  
  175.  
  176.  
  177. Carl A Baltrunas - Catalyst Art - carl@udwarf.tymnet.com
  178. Cherie Marinelli - Bijoux - cherie%udwarf@tymix.tymnet.com
  179. UUCP: uunet!oliveb!tymix!udwarf!{carl or cherie}
  180.      {carl or cherie}@udwarf.UUCP  (if these fail: carl@tymnet.com)
  181.  
  182. ---------------------------
  183.  
  184. From: kevin@crash.cts.com (Kevin Hill)
  185. Subject: System 7 crashes at weird times. New Virus?
  186. Date: 25 May 92 10:39:49 GMT
  187. Organization: Crash TimeSharing, El Cajon, CA
  188.  
  189.  
  190.   I am currently running system 7.0.1 with the following extensions:
  191.  
  192.  
  193.    Think Back, Magic Apple, switch. CDEV's that I am running are as follows:
  194.     SuperClock!...   
  195.    I have a SE/30 with 5megs of memory, a 40meg hard drive and nothing else.
  196. The problem that I have is when I am using scroll bars, or using the menus, the
  197. mac crashes with no warning.  It seems to do this randomly.  What I am wondering
  198. is if there is a virus out that disenfectant does not check for yet. My version
  199. of Disenfectant is 2.8.
  200.    I have had this error with all my extensions and CDEV's disabled.  Can anyone
  201. shed some light on this?
  202.    Thanks!
  203.   -Kevin Hill
  204.  
  205. +++++++++++++++++++++++++++
  206.  
  207. From: kpmiller@uokmax.ecn.uoknor.edu (Kent P Miller)
  208. Organization: Engineering Computer Network, University of Oklahoma, Norman, OK, USA
  209. Date: Mon, 25 May 1992 20:33:11 GMT
  210.  
  211. In article <1992May25.103949.15180@crash.cts.com> kevin@crash.cts.com (Kevin Hill) writes:
  212. >mac crashes with no warning.  It seems to do this randomly.  What I am wondering
  213. >is if there is a virus out that disenfectant does not check for yet. My version
  214. >of Disenfectant is 2.8.
  215. >   I have had this error with all my extensions and CDEV's disabled.  Can anyone
  216.  
  217. I will answer you and try to save the guy who usually twists off on this
  218. a stress-induced heart attack.
  219.  
  220. 1.  Don't assume that since your mac is crashing that it is a new virus.
  221. This is bad for many reasons.  I'll share my personal experience.  If one
  222. of my client's computers crash, they say, "Maybe we have a virus", even 
  223. though none of them own floppy disks and they have no access to the outside
  224. computer world.  Don't propagate this by causing virus panic.
  225.  
  226. 2.  Don't post this in the programming newsgroup.  It doesn't belong here.
  227. Since this is the only mac newsgroup I regularly read, I don't care where
  228. else you post it.  Maybe in comp.sys.mac.misc. 
  229.  
  230. Now, if you have rebooted with all your extensions off and you still crash,
  231. try booting from floppy.  If that works, reinstall a fresh system.  If you
  232. are still crashing, get another copy of the system install disks from 
  233. somewhere else.
  234.  
  235. Good Luck!
  236.  
  237. Kent
  238.  
  239. - -- 
  240. - -----------------------
  241. Kent Miller
  242. kpmiller@uokmax.ecn.uoknor.edu
  243. - -----------------------
  244.  
  245. +++++++++++++++++++++++++++
  246.  
  247. From: Jeremiah.Blatz@dartmouth.edu (Jeremiah Blatz)
  248. Date: 2 Jun 92 01:52:20 GMT
  249. Organization: Dartmouth College, Hanover, NH
  250.  
  251. In article <1992May25.103949.15180@crash.cts.com>
  252. kevin@crash.cts.com (Kevin Hill) writes:
  253.  
  254. > I am currently running system 7.0.1 with the following extensions:
  255. >    Think Back, Magic Apple, switch. CDEV's that I am running are as follows:
  256. >     SuperClock!...   
  257.  
  258. There's ine more extension that you should have: System 7.0 Tuner. This
  259. is available from "your official Apple dealer," It's a big help.
  260.  
  261. Jeremiah
  262.  
  263.    _______________________
  264.       / /    /  \  /  \  /
  265.      / /___ /___/ /___/ /
  266.     / /    / \   /   / /
  267. \__/ /___ /   \ /___/ /___
  268.  
  269. ---------------------------
  270.  
  271. From: killer@wimpy (karl kowalski)
  272. Subject: Amusing MPW C v3.2 Error Messages
  273. Date: 27 May 92 04:52:45 GMT
  274. Organization: The Aerospace Corporation; El Segundo, CA
  275.  
  276. Hi!
  277.  
  278. This may be a repeat of an earlier post, but what the heck.
  279.  
  280. Has anyone ever seen the following out of MPW C v3.2:
  281.  
  282. ### Error 32 ...And the lord said, 'lo, there shall only be case or  
  283. default labels inside a switch statement'
  284.  
  285. - - or -
  286.  
  287. ### Error 199 type in (cast) must be scalar; ANSI 3.3.4; page 39, lines  
  288. 10-11 (I know you don't care, I'm just trying to annoy you)
  289.  
  290. ?
  291.  
  292. Any other interesting error messages?
  293.  
  294. Anyone?
  295.  
  296. I have to admit, they are quite amusing. And actually on occasion, worth  
  297. the laughs.
  298.  
  299. Cheers,
  300.  
  301. Karl G Kowalski
  302. killer@aerospace.aero.org
  303. killer@wimpy.aero.org (NeXTmail)
  304.  
  305. +++++++++++++++++++++++++++
  306.  
  307. From: rdclark@Apple.COM (Richard Clark)
  308. Date: 27 May 92 16:52:18 GMT
  309. Organization: Apple Computer Inc., Cupertino, CA
  310.  
  311. killer@wimpy (karl kowalski) writes:
  312.  
  313. >Has anyone ever seen the following out of MPW C v3.2:
  314.  
  315. >### Error 32 ...And the lord said, 'lo, there shall only be case or  
  316. >default labels inside a switch statement'
  317. >- or -
  318. >### Error 199 type in (cast) must be scalar; ANSI 3.3.4; page 39, lines  
  319. >10-11 (I know you don't care, I'm just trying to annoy you)
  320.  
  321. >Any other interesting error messages?
  322.  
  323.   The error messages are stored as STR resources -- just type
  324.    DeRez {Tools}C -only 'STR ' {RIncludes}Types.r
  325. for a complete list.
  326.  
  327. ...Richard
  328. - -- 
  329. Richard Clark   Instructor/Course Designer, Developer University    Apple Comp.
  330.  
  331. +++++++++++++++++++++++++++
  332.  
  333. From: flaps@dgp.toronto.edu (Alan J Rosenthal)
  334. Organization: Dynamic Graphics Project, University of Toronto
  335. Date: 30 May 92 18:52:29 GMT
  336.  
  337.  
  338. ok, here's all the weird ones:
  339.  
  340. String literal too long (I let you have 512 characters, that's 3 more than ANSI
  341. said I should)
  342.  
  343. ...And the lord said, 'lo, there shall only be case or default labels inside a
  344. switch statement'
  345.  
  346. a typedef name was a complete surprise to me at this point in your program
  347.  
  348. 'Volatile' and 'Register' are not miscible
  349.  
  350. This struct already has a perfectly good definition
  351.  
  352. This union already has a perfectly good definition
  353.  
  354. This enum already has a perfectly good definition
  355.  
  356. type in (cast) must be scalar; ANSI 3.3.4; page 39, lines 10-11 (I know you
  357. don't care, I'm just trying to annoy you)
  358.  
  359. This array has no size, and that's bad
  360.  
  361. Can't cast a void type to type void (because the ANSI spec. says so, that's why)
  362.  
  363. Huh ?
  364.  
  365. can't go mucking with a 'void *'
  366.  
  367. we already did this function
  368.  
  369. This label is the target of a goto from outside of the block containing this
  370. label AND this block has an automatic variable with an initializer AND your
  371. window wasn't wide enough to read this whole error message
  372.  
  373. Call me paranoid but finding '/*' inside this comment makes me suspicious
  374.  
  375. This function has an explicit return type and deserves a return value
  376.  
  377. Invalid formal argument -- did you mean pointer to function here?
  378.  
  379. You can't have an array of functions -- did you mean pointers to functions?
  380.  
  381. Too many errors on one line (make fewer)
  382.  
  383. Symbol table full - fatal heap error; please go buy a RAM upgrade from your
  384. local Apple dealer
  385.  
  386. ---------------------------
  387.  
  388. From: jp57+@andrew.cmu.edu (Jefferson Provost)
  389. Subject: Serial i/o on the PB170?
  390. Date: 27 May 92 20:10:57 GMT
  391. Organization: Psychology, Carnegie Mellon, Pittsburgh, PA
  392.  
  393.  
  394. Hey net.mac.hackers,
  395.  
  396. I have an application that communicates through the modem port with an
  397. external device.  The program seems to run without problems (with
  398. respect to the serial i/o) on all the platforms we've tried it on except
  399. for the PowerBook 170.  We haven't tried on any other PowerBooks but we
  400. have tried it on the Plus, Classic, IIsi, IIx, IIci, II, IIfx, and
  401. Quadra 700, all do the serial I/O without any problem.
  402.  
  403. With the PB 170, however, things have been strange.  First I was having
  404. problems because I forgot to switch from internal to external modem. 
  405. After I fixed that, the program would crash (hang, or crash into
  406. MacsBug) as soon as I write to the external device the first time.  I'm
  407. writing with PBWrite, asynchronously, and as soon as my code calls the
  408. trap, I crash.
  409.  
  410. I haven't run into this behavior at all with other machines.  Is there
  411. something I need to know about the PowerBook serial port or serial
  412. driver and deal with?
  413.  
  414. Any help will be appreciated,
  415.  
  416. Thanx,
  417.  
  418. Jeff
  419.  
  420. - -----
  421. |Jefferson Provost                          | jp57+@andrew.cmu.edu   
  422. | Research Programmer - PsyScope Project    | (412) 268-3662 
  423. | Department of Psychology                  | Baker Hall 331g
  424. | Carnegie Mellon, Pittsburgh. PA 15213     |
  425.  
  426. +++++++++++++++++++++++++++
  427.  
  428. From: kpmiller@uokmax.ecn.uoknor.edu (Kent P Miller)
  429. Organization: Engineering Computer Network, University of Oklahoma, Norman, OK, USA
  430. Date: Sun, 31 May 1992 13:43:44 GMT
  431.  
  432. In article <Ie8ynFe00iUz04dEYk@andrew.cmu.edu> jp57+@andrew.cmu.edu (Jefferson Provost) writes:
  433. >After I fixed that, the program would crash (hang, or crash into
  434. >MacsBug) as soon as I write to the external device the first time.  I'm
  435. >writing with PBWrite, asynchronously, and as soon as my code calls the
  436.  
  437. Jeff,
  438.  
  439. Tried to mail you, but I couldn't.
  440.  
  441. I don't know exactly what the problem is, but I can tell you that if the
  442. PowerBook has the battery saver on, the power to the external serial ports
  443. is not enabled.
  444.  
  445. When they released the PowerBooks and the Quadras, they (Apple) released a
  446. set of tech notes about developing for them.  These may (or may not) have
  447. what you need in them.
  448.  
  449. You might also check the Power Manager chapter of Inside Mac VI (31).  On
  450. page 18, it describes 5 procedures used to control power to the serial ports.
  451. procedure AOn (turns on internal modem and power to portA)
  452. procedure AOnIgnoreModem;  (turns on power to PortA, leaves internal modem off)
  453. procedure BOn (turns on printer port)
  454. procedure AOff; procedure BOff; (turns the ports off)
  455.  
  456. Hope this helps.
  457.  
  458. Kent 
  459.  
  460. - -- 
  461. - -----------------------
  462. Kent Miller
  463. kpmiller@uokmax.ecn.uoknor.edu
  464. - -----------------------
  465.  
  466. ---------------------------
  467.  
  468. From: urritche@queen.mcs.drexel.edu (Ralph Paul Ritchey)
  469. Subject: screen shot program needed
  470. Date: 31 May 92 17:44:38 GMT
  471. Organization: Drexel University
  472.  
  473. Hello all:
  474.  
  475. I am looking for a PD or shareware program which lets you take
  476. screen shots while menus are pulled down etc.  Anyone
  477. who knows of one, I would appreciate getting info on it (where
  478. I can get it, etc.).  Thanks for the help in advance.
  479.  
  480. Ralph Ritchey
  481. urritche@mcs.drexel.edu
  482.  
  483. +++++++++++++++++++++++++++
  484.  
  485. From: asunta@convex.csc.FI (Miika Asunta)
  486. Date: 31 May 92 20:06:42 GMT
  487. Organization: Finnish Academic and Research Network Project - FUNET
  488.  
  489. In <1992May31.174438.2374@mcs.drexel.edu> 
  490. urritche@queen.mcs.drexel.edu (Ralph Paul Ritchey) writes:
  491.  
  492. >Hello all:
  493. >I am looking for a PD or shareware program which lets you take
  494. >screen shots while menus are pulled down etc.  Anyone
  495. >who knows of one, I would appreciate getting info on it (where
  496. >I can get it, etc.).  Thanks for the help in advance.
  497.  
  498. The best one is 'Capture'. It's commercial and available at your
  499. local dealer.
  500.  
  501. Miika
  502. - --
  503. Miika Asunta
  504. asunta@convex.csc.fi            Double Bass Player
  505. tel. +358-0-494 093            Macintosh Programmer
  506.  
  507. +++++++++++++++++++++++++++
  508.  
  509. From: s442070@nexus.yorku.ca (Tomas Hansson)
  510. Organization: York University, Toronto, Canada
  511. Date: Sun, 31 May 1992 21:31:52 GMT
  512.  
  513. In article <1992May31.200642.4347@nic.funet.fi> asunta@convex.csc.FI (Miika Asunta) writes:
  514. >In <1992May31.174438.2374@mcs.drexel.edu> 
  515. >urritche@queen.mcs.drexel.edu (Ralph Paul Ritchey) writes:
  516. >
  517. >>Hello all:
  518. >>I am looking for a PD or shareware program which lets you take
  519. >>screen shots while menus are pulled down etc.  Anyone
  520. >>who knows of one, I would appreciate getting info on it (where
  521. >>I can get it, etc.).  Thanks for the help in advance.
  522. >
  523. >The best one is 'Capture'. It's commercial and available at your
  524. >local dealer.
  525.  
  526. Why not settle for some shareware?! Try out Flash-It 2.2!!
  527. It works just fine AND will capture menus etc. It can be found on 
  528. sumex-aim.stanford.edu in the cp directory.
  529.  
  530. /Tomas
  531. s442070@nexus.yorku.ca
  532.  
  533.  
  534. +++++++++++++++++++++++++++
  535.  
  536. From: keith@taligent.com (Keith Rollin)
  537. Date: 1 Jun 92 00:40:54 GMT
  538. Organization: Taligent
  539.  
  540. In article <1992May31.174438.2374@mcs.drexel.edu>, urritche@queen.mcs.drexel.edu
  541. (Ralph Paul Ritchey) writes:
  542. > Hello all:
  543. > I am looking for a PD or shareware program which lets you take
  544. > screen shots while menus are pulled down etc.  Anyone
  545. > who knows of one, I would appreciate getting info on it (where
  546. > I can get it, etc.).  Thanks for the help in advance.
  547.  
  548. In article <1992May31.200642.4347@nic.funet.fi>, asunta@convex.csc.FI (Miika
  549. Asunta) writes:
  550. > The best one is 'Capture'. It's commercial and available at your
  551. > local dealer.
  552.  
  553. In article <1992May31.213152.10830@newshub.ccs.yorku.ca>, s442070@nexus.yorku.ca
  554. (Tomas Hansson) writes:
  555. > Why not settle for some shareware?! Try out Flash-It 2.2!!
  556. > It works just fine AND will capture menus etc. It can be found on 
  557. > sumex-aim.stanford.edu in the cp directory.
  558.  
  559.  
  560. Ah, you're all trying to milk this poor boy.  :-)  Step right up to
  561. ftp.apple.com and get some freeware that includes the source code. It's in
  562. /dts/mac/sc/sc-022-screenfkey.hqx.
  563.  
  564. - --
  565. Keith Rollin
  566. Phantom Programmer
  567. Taligent, Inc.
  568.  
  569.  
  570. ---------------------------
  571.  
  572. From: walkerj@math.scarolina.edu (Jim Walker)
  573. Subject: How does Script Manager affect File Manager?
  574. Organization: USC  Department of Computer Science
  575. Date: 30 May 92 21:56:58 GMT
  576.  
  577. When one is possibly running under a non-Roman script system, can one still
  578. count on a file name not containing a colon (:), and being able to use
  579. colons to separate the parts of a pathname?
  580.  
  581. - --
  582.  
  583.  -- Jim Walker  USC Dept. of Math.  walkerj@math.scarolina.edu
  584.  
  585. +++++++++++++++++++++++++++
  586.  
  587. From: edw@caligula.cts.com (Ed Watkeys)
  588. Date: Mon, 1 Jun 92 00:50:54 EDT
  589. Organization: Distant Software
  590.  
  591.  
  592. In article <walkerj.707263018@milo.math.scarolina.edu> (comp.sys.mac.programmer), walkerj@math.scarolina.edu (Jim Walker) writes:
  593. > When one is possibly running under a non-Roman script system, can one still
  594. > count on a file name not containing a colon (:), and being able to use
  595. > colons to separate the parts of a pathname?
  596.  
  597. I think it's because of stuff like this that Apple tells you not to play around
  598. with pathnames this way. If you're running under A/UX, the slash is the separator,
  599. so you're in trouble if you're assuming that colons separate directories in
  600. a pathname. This is in Inside Macintosh *somewhere*, if I recall correctly.
  601.  
  602. Ed
  603.  
  604. - --
  605. Ed Watkeys, Sys Admin.  "...The errors of great men are more venerable
  606. Distant Software         because they are more fruitful than the truths
  607. edw@caligula.cts.com     of little men..."  -- Friedrich Nietzsche
  608.  
  609. ---------------------------
  610.  
  611. From: potts@itl.itd.umich.edu (Paul Potts)
  612. Subject: Sound hardware question
  613. Date: 28 May 92 13:46:08 GMT
  614. Organization: Instructional Technology Laboratory, University of Michigan
  615.  
  616. I suspect the answer to this question is "no way," but I thought I'd ask
  617. anyway...
  618.  
  619. I have code to open channels, play digitized sound, and all that. I'm a
  620. little unclear on the stereo capabilities of certain Mac models. I-M 6 seems
  621. to be pretty explicit, so I guess what I'm asking is "is I-M 6 absolutely
  622. correct, or is there a way around this?"  Re:
  623.  
  624. - - Is there a way that I can open a sampled channel on the left stereo side
  625. only, play a sound, close the channel, then open a sampled channel on the
  626. right, and play a sound through the right stereo side only?  Will this work
  627. on some Macintosh models and not others?  (which models will it work on?)
  628.  
  629. - - On those models which combine the stereo signals into a mono output, where
  630. in the computer is this done?  What I'm asking translates to "If I'm willing
  631. to void my warranty and risk electric shock and certain doom, is it possible
  632. to un-combine the combined stereo signals and route them to separate left
  633. and right channels?"  (If the signals are combined on-chip, the answer is
  634. probably no; if there is a piece of wiring somewhere that links them, then
  635. I can probably modify it. I'm fairly handy with a soldering gun.)
  636.  
  637. Please don't just say "read I-M 6." I've read it, and it seems pretty clear,
  638. but I'm trying to see if there is a way around it. I'd like to be able to
  639. play sounds separately in the left and right channels of a IIcx. Fidelity
  640. isn't that important; noise floor isn't that important. This is to assist
  641. someone with an engineering experiment for an academic department.
  642.  
  643. - -- 
  644. Paul R. Potts, Software Designer --- potts@itl.itd.umich.edu <--- me!
  645.  
  646. +++++++++++++++++++++++++++
  647.  
  648. From: REEKES@applelink.apple.com (Jim Reekes)
  649. Date: 28 May 92 23:53:17 GMT
  650. Organization: Apple Computer, Inc.
  651.  
  652. In article <1992May28.134608.6778@terminator.cc.umich.edu>, potts@itl.itd.umich.edu (Paul Potts) writes:
  653. > I suspect the answer to this question is "no way," but I thought I'd ask
  654. > anyway...
  655. > I have code to open channels, play digitized sound, and all that. I'm a
  656. > little unclear on the stereo capabilities of certain Mac models. I-M 6 seems
  657. > to be pretty explicit, so I guess what I'm asking is "is I-M 6 absolutely
  658. > correct, or is there a way around this?"  Re:
  659. > - Is there a way that I can open a sampled channel on the left stereo side
  660. > only, play a sound, close the channel, then open a sampled channel on the
  661. > right, and play a sound through the right stereo side only?  Will this work
  662. > on some Macintosh models and not others?  (which models will it work on?)
  663. > - On those models which combine the stereo signals into a mono output, where
  664. > in the computer is this done?  What I'm asking translates to "If I'm willing
  665. > to void my warranty and risk electric shock and certain doom, is it possible
  666. > to un-combine the combined stereo signals and route them to separate left
  667. > and right channels?"  (If the signals are combined on-chip, the answer is
  668. > probably no; if there is a piece of wiring somewhere that links them, then
  669. > I can probably modify it. I'm fairly handy with a soldering gun.)
  670. > Please don't just say "read I-M 6." I've read it, and it seems pretty clear,
  671. > but I'm trying to see if there is a way around it. I'd like to be able to
  672. > play sounds separately in the left and right channels of a IIcx. Fidelity
  673. > isn't that important; noise floor isn't that important. This is to assist
  674. > someone with an engineering experiment for an academic department.
  675.  
  676. The Mac currently never mixes a stereo source into a mono output.  All machines
  677. that support stereo in hardware are always playing in stereo.  Some machines
  678. will play both the left and right outputs to the internal speaker.  The
  679. external speaker jack is always the stereo output, if stereo is available.
  680.  
  681. Use Gestalt to determine if stereo and mixing to the internal speaker is
  682. available on your machine.  There no such test avalable for System 6.0.x
  683. users.
  684.  
  685. - -----------------------------------------------------------------------
  686. Jim Reekes, Polterzeitgeist  |     Macintosh Toolbox Engineering
  687.                              |          Sound Manager Expert
  688. Apple Computer, Inc.         | "All opinions expressed are mine, and do
  689. 20525 Mariani Ave. MS: 81-KS |   not necessarily represent those of my
  690. Cupertino, CA 95014          |       employer, Apple Computer Inc."
  691.  
  692. +++++++++++++++++++++++++++
  693.  
  694. From: k044477@hobbes.kzoo.edu (Jamie R. McCarthy)
  695. Organization: Kalamazoo College
  696. Date: Fri, 29 May 1992 09:46:14 GMT
  697.  
  698. potts@itl.itd.umich.edu (Paul Potts) writes:
  699. >
  700. >I suspect the answer to this question is "no way," but I thought I'd ask
  701. >anyway...
  702. >
  703. >- Is there a way that I can open a sampled channel on the left stereo side
  704. >only, play a sound, close the channel, then open a sampled channel on the
  705. >right, and play a sound through the right stereo side only?
  706.  
  707. No way!  (Heh heh.)
  708.  
  709. Can you, for example:
  710.  
  711. SndChannelPtr mySndChannelPtr = NULL;
  712. FailOSErr( SndNewChannel(&mySndChannelPtr, sampledSynth,
  713.     initChanLeft,
  714.     NULL );
  715. sendSndToChannelWithBufferCmd(mySndChannelPtr);
  716. pauseUntilSoundIsDone();
  717. FailOSErr( SndDisposeChannel(mySndChannelPtr, TRUE) );
  718. FailOSErr( SndNewChannel(&mySndChannelPtr, sampledSynth,
  719.     initChanRight,
  720.     NULL );
  721. sendSndToChannelWithBufferCmd(mySndChannelPtr);
  722. pauseUntilSoundIsDone();
  723. FailOSErr( SndDisposeChannel(mySndChannelPtr, TRUE) );
  724.  
  725. >Please don't just say "read I-M 6."
  726.  
  727. Read I-M 6!  (Heh heh.)
  728.  
  729. As far as I know, this'll work on any machine with stereo.  Corrections
  730. are welcome...
  731. - -- 
  732.  Jamie McCarthy     Internet: k044477@kzoo.edu     AppleLink: j.mccarthy
  733.  When I read the 486 manual, I was amazed that they had got all this
  734.   working.  Then I got to the bug list in the back, and said, "Oh.
  735.   They _didn't_ get it all working."  - Mitch Bradley
  736.  
  737. +++++++++++++++++++++++++++
  738.  
  739. From: potts@itl.itd.umich.edu (Paul Potts)
  740. Organization: Instructional Technology Laboratory, University of Michigan
  741. Date: Fri, 29 May 92 15:54:09 GMT
  742.  
  743. In article <1992May29.094614.338@hobbes.kzoo.edu> k044477@hobbes.kzoo.edu (Jamie R. McCarthy) writes:
  744. >potts@itl.itd.umich.edu (Paul Potts) writes:
  745. >>
  746. >>I suspect the answer to this question is "no way," but I thought I'd ask
  747. >>anyway...
  748. >>
  749.  
  750. Thanks to everyone who sent me corrections and code. For some reason even
  751. though I had read I-M 6, I was under the impression that the IIcx and
  752. a couple of others mixed the stereo sound to mono output to the headphone
  753. jack. I was confused. Someone I'm doing some consulting for was telling me
  754. that it wasn't working, and my poor memory did the rest. Thanks for the
  755. assistance.
  756.  
  757.  
  758. - -- 
  759.  ---> Just when did the idea that we ought to make minor changes in 
  760. our industrial activities in order to save endangered species become 
  761. "environmental extremism," and the willingness to fight become "eco-terrorism?" 
  762. Paul R. Potts, Software Designer --- potts@itl.itd.umich.edu <--- me!
  763.  
  764. +++++++++++++++++++++++++++
  765.  
  766. From: REEKES@applelink.apple.com (Jim Reekes)
  767. Date: 1 Jun 92 20:38:59 GMT
  768. Organization: Apple Computer, Inc.
  769.  
  770. In article <1992May29.094614.338@hobbes.kzoo.edu>, k044477@hobbes.kzoo.edu (Jamie R. McCarthy) writes:
  771. > potts@itl.itd.umich.edu (Paul Potts) writes:
  772. > >
  773. > >I suspect the answer to this question is "no way," but I thought I'd ask
  774. > >anyway...
  775. > >
  776. > >- Is there a way that I can open a sampled channel on the left stereo side
  777. > >only, play a sound, close the channel, then open a sampled channel on the
  778. > >right, and play a sound through the right stereo side only?
  779. > No way!  (Heh heh.)
  780. > Can you, for example:
  781. > SndChannelPtr mySndChannelPtr = NULL;
  782. > FailOSErr( SndNewChannel(&mySndChannelPtr, sampledSynth,
  783. >     initChanLeft,
  784. >     NULL );
  785. > sendSndToChannelWithBufferCmd(mySndChannelPtr);
  786. > pauseUntilSoundIsDone();
  787. > FailOSErr( SndDisposeChannel(mySndChannelPtr, TRUE) );
  788. > FailOSErr( SndNewChannel(&mySndChannelPtr, sampledSynth,
  789. >     initChanRight,
  790. >     NULL );
  791. > sendSndToChannelWithBufferCmd(mySndChannelPtr);
  792. > pauseUntilSoundIsDone();
  793. > FailOSErr( SndDisposeChannel(mySndChannelPtr, TRUE) );
  794. > >Please don't just say "read I-M 6."
  795. > Read I-M 6!  (Heh heh.)
  796. > As far as I know, this'll work on any machine with stereo.  Corrections
  797. > are welcome...
  798.  
  799. You should be able to use the reInitCmd instead of closing and opening
  800. a channel.  I haven't tried it myself, but it should work.
  801.  
  802.  
  803.  
  804.  
  805. - -----------------------------------------------------------------------
  806. Jim Reekes, Polterzeitgeist  |     Macintosh Toolbox Engineering
  807.                              |          Sound Manager Expert
  808. Apple Computer, Inc.         | "All opinions expressed are mine, and do
  809. 20525 Mariani Ave. MS: 81-KS |   not necessarily represent those of my
  810. Cupertino, CA 95014          |       employer, Apple Computer Inc."
  811.  
  812.  
  813.  
  814. ---------------------------
  815.  
  816. From: kishon-amir@CS.YALE.EDU (amir kishon)
  817. Subject: Caps-lock <=> Ctrl on the powerbook keyboard
  818. Organization: Yale University Computer Science Dept., New Haven, CT 06520-2158
  819. Date: Sun, 31 May 1992 21:36:36 GMT
  820.  
  821. Does anyone have a suggestion on how to exchange the caps-lock key
  822. with the ctrl key on a powerbook keyboard. I tried changing the 'KCHR'
  823. table - this indeed exchanged their mapping but the remapped ctrl key gets
  824. 'locked' when pressed. 
  825.  
  826. Thanks,
  827.  
  828. - -- 
  829. Amir Kishon                                 ARPA:   kishon-amir@cs.yale.edu
  830. Yale University, Computer Science Dept.             kishon-amir@yale.arpa
  831. P.O.Box 2158 Yale Station                   BITNET: kishon-amir@yalecs.bitnet
  832. New Haven, CT. 06520-2158                   UUCP:   decvax!yale!kishon-amir
  833.  
  834. +++++++++++++++++++++++++++
  835.  
  836. From: blob@Apple.COM (Brian Bechtel)
  837. Date: 1 Jun 92 00:43:48 GMT
  838. Organization: Apple Computer Inc., Cupertino, CA
  839.  
  840. kishon-amir@CS.YALE.EDU (amir kishon) writes:
  841.  
  842. >Does anyone have a suggestion on how to exchange the caps-lock key
  843. >with the ctrl key on a powerbook keyboard. I tried changing the 'KCHR'
  844. >table - this indeed exchanged their mapping but the remapped ctrl key gets
  845. >'locked' when pressed. 
  846.  
  847. You can't change the behavior of the caps lock key on the PowerBook
  848. keyboard.  You can change the mapping of the keyboard, but the caps lock
  849. key has special behavior built into the keyboard processor.  
  850.  
  851. - --Brian Bechtel     blob@apple.com     "My opinion, not Apple's"
  852.  
  853. ---------------------------
  854.  
  855. From: bmor@kimbark.uchicago.edu (Brad Morris)
  856. Subject: Sound Channel Failure
  857. Date: 28 May 92 21:01:11 GMT
  858. Organization: University of Chicago Computing Organizations
  859.  
  860. I have noticed a failure of the sound channel under the following
  861. circumstances:
  862.  
  863. My program plays sounds using a simple routine.  First it sends a
  864. quietCmd to make sure the channel has stopped playing (important because
  865. this is a game and the sound has to be cut off to let the next sound play).
  866. Next, I send a bufferCmd with a pointer to my sampled sound.  So far so
  867. good.  Everything works until I try to jam too many of these at a single
  868. time.  This is caused by the user pressing multiple keys on the keyboard
  869. at once.  If I try to jam things too tightly, the channel stops playing
  870. sounds.  If I examine the channel when this has happened, I find that the
  871. flags field is always set to 7 and qHead and qTail point to appropriate
  872. sounds which should be playing but are not.  What I ended up doing is to
  873. check for flag=7 and something in the buffer (qHead > -1) and deallocating
  874. and reallocating the sound channel if this happens.  This seems to work.
  875. This leaves me with two good questions.  Is there any place that the SndChannel
  876. structure is well documented (not just used internally stuff).  And two, has
  877. anyone else seen this and what did they do.  Is there something less drastic
  878. than allocation/deallocation?
  879.  
  880. Thanks-
  881.  
  882. Brad Morris
  883. b-morris@uchicago.edu
  884.  
  885. +++++++++++++++++++++++++++
  886.  
  887. From: REEKES@applelink.apple.com (Jim Reekes)
  888. Date: 1 Jun 92 20:35:54 GMT
  889. Organization: Apple Computer, Inc.
  890.  
  891. In article <1992May28.210111.3746@midway.uchicago.edu>, bmor@kimbark.uchicago.edu (Brad Morris) writes:
  892. > I have noticed a failure of the sound channel under the following
  893. > circumstances:
  894. > My program plays sounds using a simple routine.  First it sends a
  895. > quietCmd to make sure the channel has stopped playing (important because
  896. > this is a game and the sound has to be cut off to let the next sound play).
  897. > Next, I send a bufferCmd with a pointer to my sampled sound.  So far so
  898. > good.  Everything works until I try to jam too many of these at a single
  899. > time.  This is caused by the user pressing multiple keys on the keyboard
  900. > at once.  If I try to jam things too tightly, the channel stops playing
  901. > sounds.  If I examine the channel when this has happened, I find that the
  902. > flags field is always set to 7 and qHead and qTail point to appropriate
  903. > sounds which should be playing but are not.  What I ended up doing is to
  904. > check for flag=7 and something in the buffer (qHead > -1) and deallocating
  905. > and reallocating the sound channel if this happens.  This seems to work.
  906. > This leaves me with two good questions.  Is there any place that the SndChannel
  907. > structure is well documented (not just used internally stuff).  And two, has
  908. > anyone else seen this and what did they do.  Is there something less drastic
  909. > than allocation/deallocation?
  910.  
  911. You should not be assuming the flags are going to be set to anything.
  912. It will certainly be changing in the next release of the Sound Manager.
  913. (I don't know when that is, but it will change the flags.)
  914.  
  915. All of the structures that can be used by programmers are documented.
  916. The others are reserved for Apple's use only.
  917.  
  918. There isn't enough information in your message, but if you attempt to send
  919. a bufferCmd using SndDoImediate while a buffer is still playing, the 
  920. System 7.0 Sound Manager will ignore the new buffer.  What you have to do
  921. to cancel a sound and start a new one is this:
  922.  
  923.  
  924. while a sound is playing....
  925.  
  926. SndDoImmediate(flushCmd)
  927. SndDoImmediate(quietCmd)
  928. SndDoCommand(bufferCmd)
  929.  
  930. - --- or ---
  931.  
  932. while a sound is playing
  933.  
  934. SndDoImmediate(flushCmd)
  935. SndDoImmediate(quietCmd)
  936. while SndChannelStatus == noErr and not scBusy
  937. SndDoImmediate(bufferCmd)
  938.  
  939. Both of these examples are functionally the same.
  940.  
  941.  
  942.  
  943. - -----------------------------------------------------------------------
  944. Jim Reekes, Polterzeitgeist  |     Macintosh Toolbox Engineering
  945.                              |          Sound Manager Expert
  946. Apple Computer, Inc.         | "All opinions expressed are mine, and do
  947. 20525 Mariani Ave. MS: 81-KS |   not necessarily represent those of my
  948. Cupertino, CA 95014          |       employer, Apple Computer Inc."
  949.  
  950.  
  951.  
  952. ---------------------------
  953.  
  954. Subject: Looking for Showinit
  955. From: fren007@csc.canterbury.ac.nz
  956. Date: 29 May 92 16:26:56 +1200
  957. Organization: University of Canterbury, Christchurch, New Zealand
  958.  
  959. In Technote 247, Pete Helme writes :
  960.  
  961. >The ShowINIT icon mechanism that was popularized 
  962. >by Paul Mercer is great.  In fact, we encourage it's use 
  963. >and we gladly give out the ShowINIT MPW object file, with 
  964. >installation help, to anyone who asks for it.  
  965.  
  966. Can anyone send me this object file, or the source code for 
  967. this routine, or suggest where I might find it ?  I don't 
  968. know how to contact Apple DTS by Email.
  969.  
  970. Thanks,
  971. Ken Allott.
  972.  
  973. +++++++++++++++++++++++++++
  974.  
  975. From: absurd@applelink.apple.com (Tim Dierks, software saboteur)
  976. Date: 30 May 92 21:28:05 GMT
  977. Organization: MacDTS Misfits
  978.  
  979. In article <1992May29.162656.5266@csc.canterbury.ac.nz>, fren007@csc.canterbury.ac.nz writes:
  980. > In Technote 247, Pete Helme writes :
  981. > >The ShowINIT icon mechanism that was popularized 
  982. > >by Paul Mercer is great.  In fact, we encourage it's use 
  983. > >and we gladly give out the ShowINIT MPW object file, with 
  984. > >installation help, to anyone who asks for it.  
  985. > Can anyone send me this object file, or the source code for 
  986. > this routine, or suggest where I might find it ?  I don't 
  987. > know how to contact Apple DTS by Email.
  988.  
  989. I'm including the source and object below.  I think this code
  990. is of great use to a reasonably large number of people and 
  991. that the source can be pretty educational; among other things,
  992. it shows how to use QuickDraw at INIT time and how to plot
  993. System 7-style color icons manually (useful under System 6);
  994. that's why I'm posting it directly.
  995.  
  996. Enjoy;
  997. Tim Dierks
  998. MacDTS, but I speak for the trees
  999.  
  1000. (This file must be converted with BinHex 4.0)
  1001. - -8rF%N!$KlRPrh3p$BhFAi$d'UrE+3PVLlaTGp'hJ$3j)3R$J`SXK!@HSh"6'A!E
  1002.