Re: geos-dev-digest V1 #105

CamiLee@aol.com
Wed, 2 Oct 1996 11:06:03 -0400

In a message dated 96-10-02 02:49:05 EDT, you write:

> So, I was wrong. It looks like I'll have a lot of questions here. The Sound
> Library is documented in Concepts, which doesn't show sample code or even
> tell you the parameters. I've already come across a problem. The Concepts
> book says SoundAllocSampleStream returns a MemHandle to the stream, but
> sound.h says it returns a word and takes a pointer to a MemHandle as a
> parameter. A lot of the functions return words. What do they mean?

Hi Ed,

The data type "Handle" in all it's incarnations is a word size, things like
MemHandle are defined off of "Handle" which is defined "word". They're given
different names so it's easier to read and understand what that data type is
for.

>
> And I noticed something else with sound.h...it didn't contain the carriage
> returns to match the linefeeds, which caused it to show up all on one
line.
> I noticed a few other files are like that, too. What's with that?

I'm going to have to guess on this, but GEOS handles carriage returns and
linefeeds like UNIX does. If you want certain characters kept in, you'll
need to intercept the keyboard for carriage returns and tell the file how to
display/interpret the key.

Lee