[comp.sys.mac.programmer] My games crash under 6.07 - Help?

mlab2@kuhub.cc.ukans.edu (11/15/90)

Hi.  It's been recently brought ot my attention that my games don't work on a
IIsi.  Someone else clarified this - it seems 6.07 doesn't like my games.

Are there any technotes describing the changes to 6.07?  I believe I'm using
only standard toolbox calls (bastardly perhaps).  Anyone know any obvious
pitfalls?  If you haven't seen any of my games, they're offscreen bitmap/clip
rgn/ 'SND ' intensive.  These are the probably the "dangerous" routines.

Also, I can't reply to mail (but I can read).  Small buffer?  I don't
understand this UNIX thing too clearly.

john
:======:****************************************************************
: ==== :*                  **  And watching the stars go on at night, **
:  === :*   Soft Dorothy   **  I'd like to see just one of them die.. **
:  ==  :*                  *****************************************jc**
:.=....:****************************************************************

russotto@eng.umd.edu (Matthew T. Russotto) (11/16/90)

In article <26940.2741a914@kuhub.cc.ukans.edu> mlab2@kuhub.cc.ukans.edu writes:
>Hi.  It's been recently brought ot my attention that my games don't work on a
>IIsi.  Someone else clarified this - it seems 6.07 doesn't like my games.
>
>Are there any technotes describing the changes to 6.07?  I believe I'm using
>only standard toolbox calls (bastardly perhaps).  Anyone know any obvious
>pitfalls?  If you haven't seen any of my games, they're offscreen bitmap/clip
>rgn/ 'SND ' intensive.  These are the probably the "dangerous" routines.

It's the new sound manager biting you-- I downloaded Pararena of a local
BBS recently, after getting 6.07, and experimented a bit.  If you turn
all the sounds off, it works fine.  If you turn one of the sounds on, it
works.  If you turn more then one sound on, and they play in too-rapid
succession (probably one starts before the other stops)-- CRASH.  Do
you explicitly stop current sounds before starting new ones?
-----
If the above is incomprehensible, it's because I played Stella Obscura
without the viewer for too long-- BTW, besides Pararena (which I can't get
to run), and Stella Obscura (which gives me eyestrain), what games have
you released?
--
Matthew T. Russotto	russotto@eng.umd.edu	russotto@wam.umd.edu
     .sig under construction, like the rest of this campus.

252u3129@fergvax.unl.edu (Mike Gleason) (11/16/90)

In article <1990Nov15.185819.13352@eng.umd.edu> russotto@eng.umd.edu (Matthew T. Russotto) writes:
>It's the new sound manager biting you-- I downloaded Pararena of a local
>BBS recently, after getting 6.07, and experimented a bit.  If you turn
>all the sounds off, it works fine.  If you turn one of the sounds on, it
>works.  If you turn more then one sound on, and they play in too-rapid
>succession (probably one starts before the other stops)-- CRASH.  Do
>you explicitly stop current sounds before starting new ones?

I think I have a similar problem.  I was using SndPlay() asynchronously, and
now it doesn't work with 6.0.7.  Do you or anyone else have any sample code
that uses the Sound Manager correctly?  I found both sets of documentation (the
'bogus' Chapter 27 in Inside Mac V and the supplement ms word file) totally
confusing.

If someone could just show me the correct way to load the snd resources, make
a new sndchannel, play the sound asynch. in a way that 6.07 likes I would be
happy.  It would be best if DTS would release a new sample code note that goes
into detail in using everything, even those arcane sndCommands.

_____________________________________________________________________________
 * Mike Gleason                                      252u3129@fergvax.unl.edu
 * "Don't you f*ckin' look at me!" -- D. Hopper       cosc006@unlcdc2.unl.edu

phils@chaos.cs.brandeis.edu (Phil Shapiro) (11/16/90)

In article <1990Nov15.213817.9103@hoss.unl.edu> 252u3129@fergvax.unl.edu (Mike Gleason) writes:
   In article <1990Nov15.185819.13352@eng.umd.edu> russotto@eng.umd.edu (Matthew T. Russotto) writes:
   >It's the new sound manager biting you-- I downloaded Pararena of a local
   >BBS recently, after getting 6.07, and experimented a bit.  If you turn
   >all the sounds off, it works fine.  If you turn one of the sounds on, it
   >works.  If you turn more then one sound on, and they play in too-rapid
   >succession (probably one starts before the other stops)-- CRASH.  Do
   >you explicitly stop current sounds before starting new ones?

   I think I have a similar problem.  I was using SndPlay()
   asynchronously, and now it doesn't work with 6.0.7.  Do you or
   anyone else have any sample code that uses the Sound Manager
   correctly?  I found both sets of documentation (the 'bogus' Chapter
   27 in Inside Mac V and the supplement ms word file) totally
   confusing.

I must have a rogue copy of 6.0.7 -- all of my async SndPlay code
works just like it always did, and I couldn't get Pararena to crash.
I'm using a basic II.  Maybe this is related to the Apple Sound Chip.

	-phil
--
   Phil Shapiro                           Technical Support Analyst
   Language Products Group                     Symantec Corporation
		Internet: phils@chaos.cs.brandeis.edu

russotto@eng.umd.edu (Matthew T. Russotto) (11/18/90)

In article <PHILS.90Nov16101203@chaos.cs.brandeis.edu> phils@chaos.cs.brandeis.edu (Phil Shapiro) writes:
>In article <1990Nov15.213817.9103@hoss.unl.edu> 252u3129@fergvax.unl.edu (Mike Gleason) writes:
>   In article <1990Nov15.185819.13352@eng.umd.edu> russotto@eng.umd.edu (Matthew T. Russotto) writes:
>   >It's the new sound manager biting you-- I downloaded Pararena of a local
>   >BBS recently, after getting 6.07, and experimented a bit.  If you turn
>   >all the sounds off, it works fine.  If you turn one of the sounds on, it
>   >works.  If you turn more then one sound on, and they play in too-rapid
>   >succession (probably one starts before the other stops)-- CRASH.  Do
>   >you explicitly stop current sounds before starting new ones?
>
>I must have a rogue copy of 6.0.7 -- all of my async SndPlay code
>works just like it always did, and I couldn't get Pararena to crash.
>I'm using a basic II.  Maybe this is related to the Apple Sound Chip.

The crash I have happens under 6.0.7 on a basic Mac II (5MB, no PMMU)
--
Matthew T. Russotto	russotto@eng.umd.edu	russotto@wam.umd.edu
     .sig under construction, like the rest of this campus.

Lee_Fyock.D62@qmgate.mitre.org (Lee Fyock) (11/20/90)

Will the new sound manager documentation be available
on apple.com soon?  I've been hunting high and low for
it, but only Applelink seems to have it.  I see no reason
why this shouldn't be available already; it's been released
in system software!  One kind soul mailed it to me (in
6 binhexed parts) but it was lost in the mail somewhere!
Please, some DTS god, put the new Sound Manager docs
on apple.com!

<grovel grovel...>

Thanks,
Lee

--------------------------------------------
Lee Fyock              The MITRE Corporation
laf@mbunix.mitre.org   Bedford, MA
Lee_Fyock.D62@qmgate.mitre.org

ccastcr@prism.gatech.EDU (Russo, Chris A.) (11/20/90)

>If someone could just show me the correct way to load the snd resources, make
>a new sndchannel, play the sound asynch. in a way that 6.07 likes I would be
>happy.  It would be best if DTS would release a new sample code note that goes
>into detail in using everything, even those arcane sndCommands.

> * Mike Gleason                                      252u3129@fergvax.unl.edu

  Wow, I really don't feel like figureing all of the subtle nuances of this
latest virus they call a Sound Manager.  If someone could just post the above
info to the net, that'd really be great. (Gosh golly)

  I hate the Sound Manager. I should have just used the old routines in my
game in the first place.

-- 
Russo, Chris A.
Georgia Institute of Technology, Atlanta Georgia, 30332
uucp:	  ...!{decvax,hplabs,ncar,purdue,rutgers}!gatech!prism!ccastcr
Internet: ccastcr@prism.gatech.edu