HDTenEightyP/NetNews huggingface dataset:
From: REEKES@applelink.apple.com (Jim Reekes)
Newsgroups: comp.sys.mac.programmer
Subject: Re: Another Sound Manager Question (recording on PB) [Answer]
Date: 9 Oct 92 21:08:46 GMT
Followup-To: comp.sys.mac.programmer
Organization: Apple Computer, Inc.

In article <1992Oct8.171959.6433@genome.wi.edu>, olson@genome.wi.edu (Eric
K. Olson) wrote:
> 
> In article <1992Oct6.180458.15224@genome.wi.edu> I (Eric K. Olson) write:
> >I've been trying to get SPBRecordToFile() to do its thing for me,
> >on a PowerBook 170, running 7.0.1 + TuneUp 1.1.1, without too much
> >luck.  Here's what I'm doing (schematically):
> > [...]
> >When I play back with SndStartFilePlay() I hear that the file
> >has the sound in it, but with a LOT of very gravelly noise on top of it.
> 
> Well, I found the answer to this question after a lot of trial and error.
> It turns out that AIFF files expect the sound data to be in two's-complement
> format, so one has to turn that on (SetDeviceInfo('twos'...)) in order
> to record directly to an AIFF file.  The gravelly noise is a result of
> the sign bit being interpreted as a place value of 128.
> 
> Also, although the 'qual' selector doesn't work with GetDeviceInfo(),
> it does work with SetDeviceInfo().  You can set it to 'good' ('MAC6' compression),
> 'betr' ('MAC3' compression), or 'best' ('NONE' compression).  Setting the
> compression directly seems to always return an error.
> 
> Still don't know why the 'chac' selector fails.
> 
> So it would seem that you are supposed to set the 'qual' first, then
> muck with other settings later.
> 
> NEW QUESTION: Can I use 11 kHz (or lower) sampling rate with 'good'
> 'qual' ('MAC6' compression)?

Nope.  The current MACE assumes a sample rate of 22kHz.  Also, don't assume
that "good" means MACE 3:1.  It can be anyone of your sound input driver's
idea of what good means.  To them it may mean a lower sampling rate, a
different compression (i.e. Farallon 4:1), or a different filtering.

-----------------------------------------------------------------------
Jim Reekes, Polterzeitgeist  |     Macintosh Toolbox Engineering
                             |          Sound Manager Expert
Apple Computer, Inc.         | RAll opinions expressed are mine, and do
20525 Mariani Ave. MS: 81-KS |   not necessarily represent those of my
Cupertino, CA 95014          |       employer, Apple Computer Inc.S
Newsgroups: comp.sys.mac.programmer
From: rhorn@csws1.ic.sunysb.edu (Robert Horn)
Subject: Re: sizeof(AThinkCObject) ?
Organization: State University of New York at Stony Brook
Date: Fri, 16 Oct 1992 19:28:34 GMT

In article <1992Oct15.155911.23597@cs.ucla.edu> tj@kona.cs.ucla.edu (Tom Johnson) writes:
>
>
>The Think C 5.0 manual tells me:
>
>  "You cannot use the sizeof operator to take the size of a class name or
>   of an object.  This use was allowed in THINK C 4.0."
>
>
>So, how can I do it?  I need to know how big an object is (I need to allocate
>space for a array of object created with "new_by_name").

CObject *MyArray[MONDO_GIGUNDA]
long     i;
char    *my_name;
 // set my_name;

for(i = 0; i < MONDO_GIGUNDA; i++) {
  MyArray[i] = new_by_name(my_name);
}

you don't need the size of the object, because you are only
storing a Handle to the object. Think C doesn't allow you to have 
real objects on the stack, so you can only have an array of object
pointers or handles, not the objects themselves.


-- 
rhorn@ic.sunysb.edu           Never choose a college because it has a duckpond.
Would you like to touch my wombat?		  Send me hate mail, I love it.
From: lkingsley@crd.ge.com (Lorne J. Kingsley)
Newsgroups: comp.sys.mac.programmer
Subject: Re: New QuickTime (v1.5)
Date: 15 Oct 92 12:42:46 GMT
Followup-To: comp.sys.mac.programmer
Organization: General Electric R&D

In article <IeqPF7200iV3Q3BFcR@andrew.cmu.edu>, ag3j+@andrew.cmu.edu (Adam
C. Gross) wrote:
> 
> I remember hearing something a while ago about a new verison of
> QuickTime being scheduled for introduction this time of year...  anyone
> in the developer loop know anything about it, or seen anything
> interesting?
> 
> Thanks...
> acg
> 
>    

From what I understand, QT 1.5 will be released on October 19 (at the same
time as the new Macs), and will incorporate SuperMac's "Compact Video"
codec that will allow 30fps in a 320x240 window (twice the size of the
original standard QT window) on high-end Macs, and reasonable frame rates
at the same size on mid-range systems.

Sounds good to me!

- Lorne

* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
Lorne J. Kingsley                                  General Electric Company
---->My opinions don't represent those of the General Electric Company<----
Internet: lkingsley@crd.ge.com        CI$: 75166,2550         AOL:MacReport
Newsgroups: comp.sys.mac.programmer
Subject: Re: mac CBeautifier?
From: russells@ccu1.aukuni.ac.nz (Russell Street)
Date: Thu, 8 Oct 1992 00:18:33 GMT
Organization: University of Auckland, New Zealand.

[I tried to mail this to you, but it bounced :(]

>I'm trying to find some kind of "C Beautifier".  I use the
>preprocess option in thinkC to expand macros, but the resulting
>expanded source is not formatted.  It's too tedious to format my
>hand.  I've downloaded C Tools 1.37 but the source formatter keeps
>bombing on my SE - with a variety of bomb messages.

Sometime ago was going to port Gnu-Ident to the Mac (with appropriate
pretty Mac interface) some time ago, but never got around to it :)

I found it quite easy to get a UNIX indenting program to run
on the Mac under ThinkC, so if you were really desperate you
could port it yourself. I started on one posted to UseNet
and it compiled and ran without many problems.

Try comp.sources.misc volume 21 (three parts0), but I think there
was a second release later on this year.

	indent - BSD Indent with C++ support

Again if there is enough interest I could do it 'properly',
but all that will be happening after some exams :( :(

I hope this has been of some help...
--------------------------------------------------------------
Russell Street (russells@ccu1.aukuni.ac.nz)

Secombe:  Right Mr Greenslade, segergate the sinful sexes ...
Milligan: Wait -- how many sexes are there?
Secombe:  Two.
Milligan: It is not enough, I say! Go out and order some more!



--Boundary (ID yREt1NFDp5WxB4AKMDNItw)--


Newsgroups: comp.sys.mac.programmer
From: jyct@mundil.cs.mu.OZ.AU (John Yew Choong THAM)
Subject: Scroll Bars
Organization: Computer Science, University of Melbourne, Australia
Date: Fri, 9 Oct 1992 09:47:13 GMT

Hi all,
	
	I'm trying again due to a lack of response to my previous post.
	Could someone kindly provide me with some information as to how
	to handle scrolling and scroll bars in general for a window 
	which will display data gathered from a serial port.  At the moment,
	I am merely displaying the data by writing to the screen and once
	the number of visible lines have been filled, there is no scrolling.
	I'm not sure what I have to do and Inside Mac Vol I is not much
	help either.  I'm appealing for help as my project is due quite 
	soon.

Thanks in advance,

John.
Internet Address : jyct@mundil.cs.mu.OZ.AU

P.S. 	I have tried looking for useful snippets of source from various sites
	but as yet I've found nothing :^(
Newsgroups: comp.sys.mac.programmer
From: Masud Cader <mcader@worldbank.org>
Subject: Limitations of Code Resources??
X-Xxdate: Wed, 7 Oct 92 19:52:01 GMT
Organization: The World Bank
X-Useragent: Nuntius v1.1.1d10
Date: Wed, 7 Oct 1992 15:47:08 GMT

After programming WingZ externals (code resources), I have been wondering
about some of the more subtle nature of mulitsegmented code resources. 
First of all, what is the best source of information on CODE resources
and especially multisegment code resources.

Before I continue, I will explain my application.  Basically, I am
attempting to access a Fast Fourier Transform CODE resource (WingZ
external) from within the WingZ spreadsheet.  While this is not quite
complicated, I have found that the WingZ application crashes if I pass
vectors of more than 300 rows (of a single column), i.e., 300 elements. 
After speaking with some folks at Informix, they mentioned something
about the DATA segment of the code resource not being large enough.  I am
not quite sure what they were talking about since I think that the DATA
segment is usually quite static and contains such things as strings for
registration passwords, etc., or perhaps I am confusing this with the
DATA fork?
So, secondly, how does the DATA segment(?) of a CODE RESOURCE work.  How
do I accesss it, write data to it, read data from it, etc.  Are there
limits to the the amount of data I can pump into a code resource? 
Thirdly, under System 7, am I not supposed to elude all the 32K limits
due to 24bit addressing?

If someone/s could clear this up for me, or provide me with references
(tech notes, articles) to multisegment code resources, I would be most
grateful.  Please note that I have already read IM I-V under this item
(CODE RESOURCE).
Newsgroups: comp.sys.mac.programmer
From: d88-jwa@dront.nada.kth.se (Jon Wtte)
Subject: Re: Suggestions for Font/Size menu handling
Originator: d88-jwa@dront.nada.kth.se
Organization: Royal Institute of Technology, Stockholm, Sweden
	<1992Oct9.163216.22062@sbcs.sunysb.edu>
Date: Mon, 12 Oct 1992 16:45:32 GMT

> rhorn@csws17.ic.sunysb.edu (Robert Horn) writes:

   >changes.  To determine what sizes are available, I call RealFont() on
   >every point size from 6 to 64 (the practical limit for this list) for
   >
   >Anyone have any better ideas?

Bad.

   Special casing TrueType fonts should be fairly simple, just call RealFont
   with some font size that no bitmap font would come it (43, 14617, 137,

UH! Even worse!

   but this is very unlikely). It will work happily under old systems, and
   you never have to use Gestalt. Of course, it will break just as soon

What's so hard about Gestalt? Just call it, the glue does the
right thing even under system 1.0! (Well, 6.0.0 at least, and
that should be plenty)

Inside Mac VI actually talks about this, and a believe the
gospel says:

Add the sizes 9, 10, 12, 14, 18, 24 to your font menu. Then
set the style of those that are available (call RealFont here)
to outline (one of the few occasions where outline is allowed
in ANY presentation :-) ALSO make sure to add an "Other..."
menu item to the menu, separated with a line.

If you're really fancy, you might want to allow the user to
add often-used font sizes to the menu.
-- 
 -- Jon W{tte, h+@nada.kth.se, Mac Hacker Suedoise (not french speaking) --

  "From now on I will re-label the EQ on the deck as Fizz and Wobble
   instead of HF and LF."
Newsgroups: comp.sys.mac.programmer
From: ksand@apple.com (Kent Sandvik)
Subject: Re: GCC/GMAKE
Date: Mon, 12 Oct 1992 01:52:19 GMT
Organization: Apple
Followup-To: comp.sys.mac.programmer

In article <54509@dime.cs.umass.edu>, Robert@cs.umass.edu (Robert C. Cook)
wrote:
> 
> I know that GCC is available for MPW 3.1, but is it available for MPW 3.2?
> What about GMAKE for MPW?

GCC 2.1 for MPW is on the works, however this is not a real project,
more of a skunkworks. As for GMake, have you tried makemake, available
on the developer CD?

Kent
-------------------
Kent Sandvik (UUCP: ....!apple!ksand; INTERNET: ksand@apple.com)
DISCLAIMER: Private activities on the Net.
From: mssmith@afterlife.ncsc.mil (M. Scott Smith)
Newsgroups: comp.sys.mac.programmer
Subject: Fast/Smooth animation, synching with monitors, etc.
Date: 8 Oct 92 04:43:46 GMT
Organization: The Great Beyond

Hello..

   A few days back I asked for help on doing fast, smooth animation on the
Mac.  I received several replies, which I'm grateful for.  (I also received
even more requests for copies of the replies I got, and I will get to
forwarding them!  I've been swamped this week, so hang tight.)

   I finally got a GWorld working tonight, and I've animated a color
picture I made, which is what I wanted to do.

   But, of course, I've got more questions.

   I animated the picture by moving it to the right one pixel at a time.
Not terribly fast -- in fact, it would take maybe 6 seconds to go across
the screen.  Is this normal?

   When I moved it to the right 4 or so pixels at a time, it was fairly
zippy, and didn't seem that choppy.  Is good-looking animation normally
achieved by jumping more than 1 pixel in a given direction?

   Unfortunately, the animation was VERY jerky/flashy -- I wasn't expecting
this.

   Is THIS normal?  Do I need to synch the animation with the monitor?

   And, if so, how can I do this?  (I'm using Think C at this point.)

* * *

   Also, just some background information on how I'm doing this.  (Or how I
think I did it.)

   I create two Gworlds; one has a picture of a fish, the other has a blank
picture (for erasing over the fish..  bad idea (or better way?))

   Once I've set up the GWorlds, and drawn the two pictures in them, I go
through a loop where I set a source and destination rect (increasing
the horizontal placement by 4 each time through), and then CopyBits
from the GWorld on to the window.  (I guess.)

   Any comments / help / pointers would be GREATLY appreciated.  I am
really getting into this, and can't wait to start putting some of my ideas
to work!

Thanks,

M. Scott Smith
  (mssmith@afterlife.ncsc.mil)
Newsgroups: comp.sys.mac.programmer
From: Don Lee <DL10@cornell.edu>
Subject: Disabling System 7's special menus
X-Xxmessage-Id: <A7016C3CC403EC36@cu-dialup-0212.cit.cornell.edu>
X-Xxdate: Wed, 14 Oct 92 06: 18:36 GMT
Nntp-Posting-User: dl10@cornell.edu
Organization: Cornell Information Technologies
X-Useragent: Nuntius v1.1.1d12
Date: Wed, 14 Oct 1992 10:17:35 GMT

I know there are Extensions available at various archives that can be
used to completely remove the Balloon Help menu -- can someone tell me
how this is done?  I guess I'm essentially asking how such programs were
written (i.e. what part of the System and/or Finder is altered and in
what way).  Actual source code would be great!

Don Lee (DL10@cornell.edu)
Newsgroups: comp.sys.mac.programmer
From: mkelly@mystix.cs.uoregon.edu (Michael A. Kelly)
Subject: C.S.M.P. Digest V1 #181 Available
Followup-To: poster
Organization: University of Oregon Computer and Information Sciences Dept.
Date: Sat, 10 Oct 1992 21:16:48 GMT


C.S.M.P. Digest             Sat, 10 Oct 92       Volume 1 : Issue 181

Today's Topics:

	How do I mount a SCSI device?
	Hermes external in C
	Creating background tasks (HELP!).
	How to increase stack size ???



The Comp.Sys.Mac.Programmer Digest is moderated by Michael A. Kelly.

The digest is a collection of article threads from the internet newsgroup
comp.sys.mac.programmer.  It is designed for people who read c.s.m.p. semi-
regularly and want an archive of the discussions.  If you don't know what a
newsgroup is, you probably don't have access to it.  Ask your systems
administrator(s) for details.  (This means you can't post questions to the
digest.)

Each issue of the digest contains one or more sets of articles (called
threads), with each set corresponding to a 'discussion' of a particular
subject.  The articles are not edited; all articles included in this digest
are in their original posted form (as received by our news server at
cs.uoregon.edu).  Article threads are not added to the digest until the last
article added to the thread is at least one month old (this is to ensure that
the thread is dead before adding it to the digest).  Article threads that
consist of only one message are generally not included in the digest.

The entire digest is available for anonymous ftp from ftp.cs.uoregon.edu
[128.223.8.8] in the directory /pub/mac/csmp-digest.  Be sure to read the
file /pub/mac/csmp-digest/README before downloading any files.  The most
recent issues are available from sumex-aim.stanford.edu [36.44.0.6] in the
directory /info-mac/digest/csmp.  If you don't have ftp capability, the sumex
archive has a mail server; send a message with the text '$MACarch help' (no
quotes) to LISTSERV@ricevm1.rice.edu for more information.

The digest is also available via email.  Just send a note saying that you
want to be on the digest mailing list to mkelly@cs.uoregon.edu, and you will
automatically receive each new issue as it is created.  Sorry, back issues
are not available through the mailing list.

Send administrative mail to mkelly@cs.uoregon.edu.


-- 
_____________________________________________________________________________
Michael A. Kelly                                         University of Oregon
mkelly@cs.uoregon.edu                             Computer Science Department
_____________________________________________________________________________
Newsgroups: comp.sys.mac.programmer
From: wwg2101@venus.tamu.edu (GILPIN, W.W.)
Subject: CMarker
News-Software: VAX/VMS VNEWS 1.41    
Organization: Texas A&M University, Academic Computing Services
Date: Mon, 12 Oct 1992 00:08:00 GMT

Is there a version of CMarker or a similar utility which works with THINK C
5.0.x? UMICH has version .5b3 of CMarker which doesn't appear to work with
version 5.0.x of THINK C.

-------------------------------------------------------------------------------
| Wes Gilpin              | I'd kill myself for you...I'd kill you for myself |
| WWG2101@TAMZEUS(BITNet) |------------------------------------------         |
| WWG2101@ZEUS.TAMU.EDU   | Southwest Knights of Nee Paintball Team | PANTERA |
-------------------------------------------------------------------------------
From: cconstantine@galaxy.gov.bc.ca
Newsgroups: comp.sys.mac.programmer
Subject: Re: Anyone have a bar-graph/progress monitor?
Date: 7 Oct 92 13:12:40 -0700
Organization: BC Systems Corporation

In article <1992Oct07.154226.8312@bnr.ca>, brunner@crchh447.bnr.ca (James Brunner) writes:
> Looking for a bar-graph/event handler routine to indicate progress.  I'm porting
> a UNIX program and what I really need is a routine that I can call periodically
> that will:
>     * Indicate progress (I can pass it a percent, etc)
>     * Handle update events to the progress monitor
>     * Handle suspend/resume events for the app
>     * Allow execution of other tasks (multi-process stuff)
> 
> If someone has code that I can reuse, I would hate to re-invent the wheel.
> 

Check out Macintosh Programming Secrets, Second Edition by the one and only
Scott Knaster and Keith Rollin (the Phantom Progammer).  It has an excelent
code example on how to do this.!!

> Thanks, please reply by e-mail (save some bandwidth).

Also mailing the reply, but thought some other people would like to know where
to get an example as well.

-- 
Carl B. Constantine
CCONSTANTINE@galaxy.gov.bc.ca
	"Opinions are mine only!!"
Xref: sparky comp.sys.mac.programmer:16801 comp.sys.mac.comm:9960
From: ichikawa@omphalos.bug.co.jp (Ichikawa)
Newsgroups: comp.sys.mac.programmer,comp.sys.mac.comm
Subject: Re: CTB Tool Menu Wierdness...
Summary: more CTB confusion
Date: 12 Oct 92 08:40:51 GMT
Followup-To: poster
Organization: BUG Inc., Sapporo, JAPAN

In article <84243D415D@ivt.srcc.msu.su>, butenko@stalker.srcc.msu.su (Vladimir Butenko) writes:

(stuff about CTB pop-up menus )

>  I do understand why  CTB  tools  are  excluded  from  the  application
>  resource files chain, but why they are not linked to the System file -
>  is beyond of my mind.
> 
>  And, of course, you'll meet the same problem  with  other  calls,  the
>  GetMenu() is just one of them :-(.
> 
>  Hope it helps (?),

I think a lot of the crashes I am getting with the CTB are because of these 
types of problems. 

Does anyone know of a comprehensive list of everything you can't do with
the CTB that you would take for granted with "normal applications?"
I can't seem to find this info in the "Inside the Mac CTB" manual 
or the Inside Macintosh manuals.

I only recently started reading this newsgroup, so I apologize if 
this is a FAQ.

----
Jeff Ichikawa
ichikawa@bug.co.jp
From: mwu@orion.oac.uci.edu (Matt Wu)
Subject: Programming tool vendors
Newsgroups: comp.sys.mac.programmer
Organization: University of California, Irvine
Date: 9 Oct 92 00:41:49 GMT

Can someone tell me a particularly good place from which to purchase
Macintosh programming tools?  Places like The Programmer's Shop and
Programmer's Paradise don't seem to take the Macintosh seriously.

Matt
mwu@orion.oac.uci.edu
From: REEKES@applelink.apple.com (Jim Reekes)
Newsgroups: comp.sys.mac.programmer
Subject: Re: System 7 Sounds
Date: 13 Oct 92 19:45:04 GMT
Followup-To: comp.sys.mac.programmer
Distribution: comp.sys.mac.programmer
Organization: Apple Computer, Inc.

In article <GLENN.92Oct12103107@capella.clsi.COM>, glenn@clsi.COM (Glenn
Boysko) wrote:
> 
> 
> Hello All:
> 
> 	I've received some Macintosh System 7 sound files and was wondering if
> anyone knew of a way to listen to them on a System 6 Macintosh.  I was
> wondering if:
> 
> 	o System 7 files can be converted to System 6, OR
> 	o There exists a sound player that works on System 6 and reads System
> 	  7 sounds
> 
> Does anyone have any input?

"System 7 sound" files are not new.  They are simply a file containing a
single 'snd ' resource.  They only thing unique about them are they're
created by the Finder and have a new file type so that they can get their
own icon.  When the user "opens" them the Finder calls GetIndResource and
then SndPlay.  The 'snd ' resource is supported all the way back to System
5.0.

-----------------------------------------------------------------------
Jim Reekes, Polterzeitgeist  |     Macintosh Toolbox Engineering
                             |          Sound Manager Expert
Apple Computer, Inc.         | RAll opinions expressed are mine, and do
20525 Mariani Ave. MS: 81-KS |   not necessarily represent those of my
Cupertino, CA 95014          |       employer, Apple Computer Inc.S
From: mgeorgy@vmsclst1.sc.csupomona.edu
Newsgroups: comp.sys.mac.programmer
Subject: Usenet Macintosh Programmers Guide HELP
Date: 13 Oct 92 23:00:00 GMT
Organization: Computer Science Computational Systems
Nntp-Posting-User: mgeorgy

Hello, well I am a new Mac programmer and I have been trying to download the
Usenet Macintosh Programmers Guide but so far I have not had any luck.  There
seems to be a problem with the two HQX files.  I have tried about 4 different
FTP sources.  Anyone have any suggestions.

Any help greatly appreciated,
Matt Georgy
California State Polytechnic State University, Pomona  -- Computer Science
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+When It Absolutely, Positively, Has To Be Taken Out Overnight!!!+
+                                                                +
+                                           -- Team Stealth      +
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
From: peirce@outpost.SF-Bay.org (Michael Peirce)
Newsgroups: comp.sys.mac.programmer
Subject: Re: QuickTime Controllers
Date: 9 Oct 92 06:58:21 GMT
Reply-To: peirce@outpost.SF-Bay.org (Michael Peirce)
Organization: Peirce Software
X-Mailer: uAccess - Macintosh Release: 1.6v1


In article <D2150035.fklsnc@outpost.SF-Bay.org> (comp.sys.mac.programmer), peirce@outpost.SF-Bay.org (Michael Peirce) writes:
> 
> When I deactivate the movie (using MCSetVisible) the badge animation
> happens and the badge is drawn on top of the movie.  But when I reactivate
> the movie, there is still no movie controller.

One other data point: I tried a movie with sound and when I click
on the area where the sound icon is, I get a rectangle draw where
the sound slider should be but its still just white on the inside.

Is it possible that the controller can't access the controller picture
parts?  But the badge does get drawn.  Wierd. :-(

--  Michael Peirce      --   peirce@outpost.SF-Bay.org
--  Peirce Software     --   Suite 301, 719 Hibiscus Place
--                      --   San Jose, California USA 95117
--  Makers of...        --   voice: (408) 244-6554 fax: (408) 244-6882
--            SMOOTHIE  --   AppleLink: peirce & America Online: AFC Peirce
Newsgroups: comp.sys.mac.programmer