HDTenEightyP/NetNews huggingface dataset:
From: mykes@amiga0.SF-Bay.ORG (Mike Schwartz)
Newsgroups: comp.sys.amiga.programmer
Subject: Re: A3000/2.04 differences for audio?
Distribution: world
X-NewsSoftware: Amiga GRn V1.28 2/25/92 (Beta) by Mike Schwartz
Date: 8 Apr 92 21:23:37 PST
Organization: Amiga makes it possible

In article <1205@lysator.liu.se> boberg@lysator.liu.se (Stefan Boberg) writes:
>chrisg@cbmvax.commodore.com (Chris Green) writes:
>
>>In article <11200@mindlink.bc.ca> Charlie_Gibbs@mindlink.bc.ca (Charlie Gibbs) writes:
>>>In article <45934@dime.cs.umass.edu> barrett@astro.cs.umass.edu
>>>(Daniel Barrett) writes:
>>>
>>>>        I just upgraded from an A1000 (1.3) to an A3000T (2.04), and I've
>>>>noticed a problem with audio.  Some of my games which appear to run fine
>>>>otherwise under 2.04 (like "Megaball 2.0" and "Prospector in the Mazes of
>>>>Xor") play their music incorrectly.  Specifically, there are notes and sound
>>>>effects missing here and there.  "Faery Tale Adventure" was missing its music
>>>>entirely.
>
>>	If the games are really old, it might just be that they don't like
>>FAST RAM.
>
>  I don't think it is because of the KickStart nor FAST RAM (not directly,
>anyway). The most probable reason is that they use a processor busy-wait
>loop to delay between shutting off the sound DMA for a channel and
>initiating a new sample. This is a problem with early SoundTracker replay
>routines as well. So it really is the 68030 that causes it to fail, not
>the OS. Try running the games/whatever with all FAST RAM and caches
>disabled, it should work a lot better then since the programs will run A
>LOT slower from CHIP memory.
>

For what it's worth, in my own audio drivers, I have a subroutine:

WaitScanLine	move.b	$dff006,d0
.loop1		cmp.b	$dff006,d0
		beq.s	.loop1
		move.b	$dff006,d0
.loop2		cmp.b	$dff006,d0
		beq.s	.loop2
		rts

This is a processor independant delay loop, guarnateed to wait no less than
one scanline's worth of time, and no more than two.  This turns out to be
roughly, .06 milliseconds.

Before the 2.0 police get on my case about this:  It IS graphics mode
dependant.  In the productivity or superhires mode, the delay is 1/2 what
it is in the rest of the (current) video modes.

I should also point out that there is zero need for a delay of any kind
when working the audio hardware.  To stop a sound, you set the period to
1, volume to zero, disable DMA, and store zero to the audio DAC register.

--
Author of Amiga GRn, MailMinder, Budokan, Beyond Dark Castle, Dark Castle,
and Genesis Dick Tracy and Marble Madness.
Mike Schwartz  (ames!zorch!amiga0!mykes or mykes@amiga0.sf-bay.org)
1124 Fremont Ave.
Los Altos, CA 94024
From: utoddl@next1.oit.unc.edu (Todd M. Lewis)
Newsgroups: comp.sys.amiga.programmer
Subject: Re: Some Basic Problems in C.
Date: 13 Apr 92 14:45:12 GMT
Distribution: usa
Organization: UNC Office of Information Technology

In article <dither.04xo@cryo.rain.com> dither@cryo.rain.com (Joel Stanley)  
writes:
> 
>  
> I am having a problem with a program I am trying to write. I have been
> using the RKMs to try to make a custom screen with a full-sized window in
> it that is BORDERLESS and is a BACKDROP window. Here's my source:
  [...]
> NewWindow.IDCMPFlags = SMART_REFRESH | ACTIVATE | BORDERLESS | NOCAREREFRESH;
  [...]
> When this runs, it comes up with a screen, and then it has a window, but
> it's not borderless and I don't think it's a backdrop window. Please, no
> flames about the stupidity of this question, as I am a beginner. The
> NewWindow structure and a couple of struct statements are commented out,
> but don't worry about that...thankyou

BORDERLESS is not an IDCMPFlag, it is a Flags flag.  You are not setting
the NewWindow.Flags field.  BORDERLESS has a value of 0x00000800.  Likewise,
ACTIVATE is a Flags flag, not and IDCMP class.  The same goes for the
REFRESH flags.  Further, if you want a backdrop window, you have to specify  
BACKDROP in Flags.  The Flags flags and the IDCMPFlags flags values
overlap, so what you actually asked for above is:
  NewWindow.IDCMPFlags = REQCLEAR | REQVERIFY | WBENCHMESSAGE; 
Probably not what you had in mind. You want:

 NewWindow.Flags  = SMART_REFRESH | NOCAREREFRESH | 
                    BORDERLESS    | ACTIVATE      | BACKDROP;
 NewWindow.IDCMPFlags = RAWKEY;  /* Just an example. */

Confusing window flags and IDCMP classes is one of the most common errors
made esp. by beginner Intuition programmers.  In the v37 includes,
window flags all start with WFLG_, while IDCMP classes all start with
IDCMP_.  The above, under the 2.0x includes, becomes:

 NewWindow.Flags = WFLG_SMART_REFRESH | WFLG_NOCAREREFRESH | 
                   WFLG_BORDERLESS    | WFLG_ACTIVATE      | WFLG_BACKDROP;
 NewWindow.IDCMPFlags = IDCMP_RAWKEY;  /* Just an example. */

Good luck,

Todd M. Lewis / utoddl@next1.oit.unc.edu
Newsgroups: comp.sys.amiga.programmer
From: jdickson@jato.jpl.nasa.gov (Jeff Dickson)
Subject: Re: Input handler for Games (was Re: Custom Copperlist)
Organization: Jet Propulsion Laboratory
Distribution: usa
Date: Thu, 9 Apr 1992 17:17:35 GMT

In article <1992Apr9.140942.14588@samba.oit.unc.edu> utoddl@next1.oit.unc.edu (Todd M. Lewis) writes:
>In article <30107@cbmvax.commodore.com> chrisg@cbmvax.commodore.com (Chris  
>Green) writes:
>>If you want a full custom copper list, than you'll have to use a custom View.
>>If you do this, than you can get input by installing an input handler, and
>>emulate amiga-m, etc.-- 
>
>Not meaning to beat a dead horse into a plowshare, but is there an
>input handler template that could be just dropped into a program to 
>handle this in a clean way?  Maybe I'm wrong, but sooner or later it
>seems everyone wants to write some killer game that's OS friendly,

	Sure a game could install an input handler to retrieve input, but
there is no automatic arbitration of the input device food chain with respect
to the active window. Applications that are tied to windows receive IDCMP
messages when their window is the active one, but never otherwise. How
would a game determine to shut off the input handler? 

	At least by sticking to using the console device and/or intuition -
the input stream gets cutoff automatically when the window is deselected in
the process of selecting another window. 

	Also, by not using the Console device you can't make use of the
keyboard maps. Your game would fastly become unpopular amoung the inter-
national community.
From: peter@cbmvax.commodore.com (Peter Cherna)
Newsgroups: comp.sys.amiga.programmer
Subject: Re: Workbench-like PROPGCLASS Gadgets ?
Date: 14 Apr 92 17:16:49 GMT
Reply-To: peter@cbmvax.commodore.com (Peter Cherna)
Organization: Commodore-Amiga, Inc.  West Chester, PA.

In article <1992Apr14.145352.9057@vlsi.polymtl.ca> sevigny@vlsi.polymtl.ca (Benoit Sevigny) writes:
>I'm using 2.04 but I worked on this last night and have had my NewLook. My real
>problem however is to create an AUTOKNOB PROPGADGET with NewObject.  I can
>create Workbench-like PROPGADGET with a Gadget structure along with the
>AUTOKNOB and NEWLOOK flags, but I'm unable to create these gadgets with the
>NewObject Boopsi call.  I always end up with a simple proportional gadget.

Are you passing in anything for GA_Image?  If you are, that's your problem.

>     /// Benoit Sevigny, software | Skipping every x86 lines in your sources

     Peter
--
Peter Cherna, Operating Systems Development Group, Commodore-Amiga, Inc.
{uunet|rutgers}!cbmvax!peter    peter@cbmvax.commodore.com
My opinions do not necessarily represent the opinions of my employer.
"ROM wasn't built in a day."
From: jprad@faatcrl.UUCP (Jack Radigan)
Newsgroups: comp.sys.amiga.programmer
Subject: AmigaDOS async packets and the PRT: device, problems.
Summary: Async DOS packets apparently don't work with the PRT: device, why?
Date: 7 Apr 92 22:41:02 GMT
Organization: FAA Technical Center, Atlantic City NJ


  Is there some sort of limitation with using asynchronous DOS packet
I/O with the PRT: device?  I had wanted to be able to allow the user to
decide on a file pathname or the default PRT: device for printer output
in the next release of JR-Comm.  I also want to do this asynchronously
via DOS packets so that the main process does not get I/O bound when
the printer buffer fills up.

  The code is functional as it works as expected with file paths to RAM:,
DFx: and DHx:.  The printer also works as expected when I use the DOS Write()
function, but when I attempt to use DOS packets I get blank pages, tons of
them.

  If there is some special setup needed for the packets like there is with
console devices, I've not been able to locate it.  Any info would be much 
appreciated.

  -jack-
From: jpotter@ucs.adelaide.edu.au (Jonathan Potter)
Newsgroups: comp.sys.amiga.programmer
Subject: Re: free -- how it works
Date: 16 Apr 92 10:06:20 GMT
Organization: Information Technology Division, The University of Adelaide, AUSTRALIA

In article <920413.012528.CDT.C503719@UMCVMB.MISSOURI.EDU> C503719@UMCVMB.MISSOURI.EDU (Baird McIntosh) writes:
[some stuff above and below deleted]
>Now, the question.  If the free(*p) statement is commented out, the
>program still seems to free all memory that it mallocs.  That is, after
>running the program several times, 'avail' still shows the same amount
>of memory before running as after.  Why?  If we don't free(*p), there should
>be 1000 ints * 4 bytes/int == 4000 bytes eaten each time the program runs.
>Or do I misunderstand how the free() function works?  (That's probably it :-)

No you don't. But the exit() routine automatically frees up any memory
allocated by malloc() that hasn't already been freed.

Therefore, you are free()ing p yourself, and exit() is free()ing *p.

Jon


-- 
| Jonathan Potter |                              | A                       |
| P.O. Box 289    | jpotter@itd.adelaide.edu.au  |   Suffusion             |
| Goodwood, SA    | FidoNet : 3:680/829          |               Of        |
| Australia  5034 |                              |                  Yellow |
From: ian@ug.cs.dal.ca (Ian Littlewood)
Newsgroups: comp.sys.amiga.programmer
Subject: WB2.04/WB2.1
Summary: Wondering about Workbench 2.04/2.1
Keywords: Workbench 2.04,2.1
Date: 6 Apr 92 20:40:18 GMT
Distribution: dal
Organization: Math, Stats & CS, Dalhousie University, Halifax, NS, Canada


I have a couple of questions for anyone who can answer:

1. Where can I get upgraded documentation on the Amiga libraries for WB2.04?
   I do a lot of programming, but all the library/structure information I
   have is for WB1.3 - In the next 4 days I will be upgrading to WB2.04 and
   am understandably curious about the new libraries and features of WB2.04

2. I've seen several files on Workbench 2.1 which seems to be an significant
   upgrade to WB2.04 - when is WB2.1 to be released? Is it just vapourware or
   wishful thinking, or is it really on the drawing board for release
   sometime in the near future?

Thanks.
From: stefanb@rama.informatik.rwth-aachen.de (Stefan Becker)
Newsgroups: comp.sys.amiga.programmer
Subject: Re: automatic library init with gcc
Date: 13 Apr 92 08:51:27 GMT
Organization: RBI - RWTH Aachen

wild@nessie.cs.id.ethz.ch (Markus Wild) writes:

>I know that something similar (details someone?) is provided with DICE,
>it would be nice to provide a similar syntax for a similar thing, if 
>possible.

It's the same syntax, but you don't have to include the inline header file.

BTW.:  In DICE this does only work, if the ...Base variable is declared as
       extern.

	Stefan

-- 
Mail  : Stefan Becker, Holsteinstrasse 9, D-5100 Aachen  ///    Only
Phone : +49-241-505705			    Germany     ///  Amiga makes
Domain: stefanb@cip-s01.informatik.rwth-aachen.de   \\\///  it possible..
FIDO  : 2:242/7.6, Stefan_Becker@mowgli.fido.de	     \XX/  -->A3000/25<--
Newsgroups: comp.sys.amiga.programmer
From: sevigny@vlsi.polymtl.ca (Benoit Sevigny)
Subject: Re: Workbench-like PROPGCLASS Gadgets ?
Organization: Ecole Polytechnique de Montreal
Date: Tue, 14 Apr 92 14:53:52 GMT

In article <30276@cbmvax.commodore.com> peter@cbmvax.commodore.com (Peter Cherna) writes:
>In article <1992Apr10.192702.8623@vlsi.polymtl.ca> sevigny@vlsi.polymtl.ca (Benoit Sevigny) writes:
>>I'm trying to create 2.0 Workbench-like PROPGCLASS gadgets and I can't
>>figure out what tag sequence I need for the NewObject call.  Do I need an
>>Image? I tried PGA_NewLook but I always get the same old-looking gadget.
>>Could someone tell me the whole and exact tag sequence along with Image
>>definition (if needed).
>
>What version Kickstart are you running?  I think PGA_NewLook was broken
>prior to 37.175, 2.04.  PGA_NewLook should be all that's required.
>
>>Reply-to: sevigny@vlsi.polymtl.ca
>
>     Peter
>--
>Peter Cherna, Operating Systems Development Group, Commodore-Amiga, Inc.
>{uunet|rutgers}!cbmvax!peter    peter@cbmvax.commodore.com
>My opinions do not necessarily represent the opinions of my employer.
>"ROM wasn't built in a day."

I'm using 2.04 but I worked on this last night and have had my NewLook. My real
problem however is to create an AUTOKNOB PROPGADGET with NewObject.  I can
create Workbench-like PROPGADGET with a Gadget structure along with the
AUTOKNOB and NEWLOOK flags, but I'm unable to create these gadgets with the
NewObject Boopsi call.  I always end up with a simple proportional gadget.
I tried to OR AUTOKNOB with FREEVERT in the PGA_Freedom tag but it
doesn't work. Is there a "PGA_AutoKnob" tag kind?

--
===============================================================================
     /// Benoit Sevigny, software | Skipping every x86 lines in your sources
 \\\///  engineering student      | might remove both your most irreductible
  \\V/   sevigny@info.polymtl.ca  | bugs and bottlenecks!!!
Newsgroups: comp.sys.amiga.programmer
From: wild@nessie.cs.id.ethz.ch (Markus Wild)
Subject: automatic library init with gcc
Organization: Swiss Federal Institute of Technology (ETH), Zurich, CH
Date: Sun, 12 Apr 1992 23:04:40 GMT


I just uploaded an experimental library (libauto.a, the archive name is
libauto-920413.lha) to amiga.physik.unizh.ch), that allows you to 
automatically initialize an Amiga shared library as long as you declare
a reference to its library base.

As an example:
#include <exec/types.h>           
#include <intuition/intuition.h>  
                                  
#include <inline/intuition.h>     
                                  
main()                            
{                                 
  long secs, mics;                
                                  
  CurrentTime (&secs, &mics);     
  printf ("%d, %d\n", secs, mics);
}

In this case, <inline/intuition.h> does `extern ... IntuitionBase'. If
you compile this program with

  gcc test.c -o test -lauto

then the resulting program will first open intuition.library, go thru
the stuff in main(), and afterwards close intuition.library again.

I know that something similar (details someone?) is provided with DICE,
it would be nice to provide a similar syntax for a similar thing, if 
possible.

As said at the beginning, this library is highly experimental. I'm open
to suggestions, just try it out!

Thanks to the people who kept asking why this isn't possible with gcc ;-)))

-Markus Wild

PS: of course the facility used in the background to make this work can
-- 
Markus M. Wild    -  wild@nessie.cs.id.ethz.ch  |  wild@amiga.physik.unizh.ch 
Q: How many IBM cpu's does it take to do a logical right shift?
A: 33.  1 to hold the bits and 32 to push the register.
Newsgroups: comp.sys.amiga.programmer
From: dbenn@leven.appcomp.utas.edu.au (David Benn)
Subject: Help with 2.04 console problem
Organization: University of Tasmania at Launceston
Date: Fri, 17 Apr 92 07:02:12 GMT

I've just converted over to 2.04 and have discovered a minor but annoying
difference between the way 2.04 handles certain console codes as opposed to
the way it's done in 1.3 (or even beta versions of 2.0).

When changing the backround colour in a CON: or RAW: with 

	$9b(Style);(Foreground colour);(Background colour)$6d

followed by a $0c (clear screen)

the window clears and the background changes to the colour requested.

This *does NOT* work under 2.04!!!!!

Even setting the cursor position to the top of window with another $9b
sequence and then using $9b,$4a (erase screen from cursor) doesn't work.

What you get is the text retaining the appropriate background colour, but
the rest of the window does NOT retain the background colour you asked for.

Is this a BUG or a feature?

If it's a feature, how can I get around this in a way that is 1.3 and 2.04
compatible??

What it means to me is that when I issue a COLOR f,b:CLS from ACE BASIC
(the compiler I'm writing), the result expected is not what happens in
2.04.

This is not just my setup. A friend of mine got the same result on a
program that worked fine under 1.3. 

I stuffed around with my pref's but to no avail.             

I'd like an answer on this ASAP. Perhaps CATS can give me a definitive
answer. If I should be doing something different, please tell me.

Anyone.....?

Regards


David Benn
From: stelmack@burma.csee.usf.edu (Gregory M. Stelmack)
Newsgroups: comp.sys.amiga.programmer
Subject: Re: Cookie-cut drawing
Date: 14 Apr 92 19:38:16 GMT
Reply-To: stelmack@burma.csee.usf.edu (Gregory M. Stelmack)
Organization: University of South Florida, Department of Computer Science and Engineering

You mean the routine BlitBitMapRastPort ?

-- 
-- Greg Stelmack (stelmack@eggo.csee.usf.edu)
-- WordPerfect: A WP that does in 3 kestrokes what most others do in 1...
-- DISCLAIMER: The opinions reflected here do not necessarily represent those
-- of my school or my employer.
Newsgroups: comp.sys.amiga.programmer
From: sysop@insider.zer.sub.org
Subject: Re: Does GadToolsBoxV1.3 work?
Organization: fulmin Ebersburg/Rhoen
Distribution: comp
Date: Fri, 17 Apr 1992 09:51:47 GMT

  
> But it has *many* enforcer (and mungwall) hits!

Using the 1.3 version 37.95 (27-Mar-92) will solve the problem...

-gg

---
SysOp@INSIDER

-- THE ANSWER V2.01
Newsgroups: comp.sys.amiga.programmer
From: dbenn@leven.appcomp.utas.edu.au (David Benn)
Subject: Re: Assembly...
Organization: University of Tasmania at Launceston
Date: Thu, 9 Apr 92 03:45:16 GMT

In article <92099.160442MRC113@psuvm.psu.edu>, Mike Cramer <MRC113@psuvm.psu.edu> writes:
>
>I've been reading up on assembly for the past few weeks or so and have come
>to the conclusion that it would be a VERY USEFUL thing to learn.  The only
>problem is, I don't have a way to assemble anything!  I am looking for a
>public domain or shareware package.  Any ideas?  I have the Commodore
>assembly include files and ALink.  I just want to fool around so I don't
>want anythin g as complex as the commercial stuff around.  Any ideas?
>
>-----
>"'Son I am able,' she said 'though you scare me.'  | Mike Cramer
> 'Watch,' said I 'beloved,' I said 'watch me scare |
> you though.' said she, 'able am I, Son.'"         |
>          They Might Be Giants -- I Palindrome I   | mrc113@psuvm.psu.edu

A68K by Charlie Gibbs will serve you well.

Regards


-- 
David Benn - Applied Computing             "We dance around in a ring and  
University of Tasmania at Launceston        suppose; but the secret sits
dbenn@leven.appcomp.utas.edu.au             in the middle and knows".
                                            - Robert Frost
From: pruttman@cerebus.cc.edu (Pete Ruttman)
Newsgroups: comp.sys.amiga.programmer
Subject: Need to open a window on WB2.0 with iff pict in it
Date: 16 Apr 92 15:37:20 GMT
Article-I.D.: carroll1.3110
Reply-To: pruttman@cerebus.cc.edu (Pete Ruttman)
Organization: Carroll College-Waukesha, WI

I need to open a window on the workbench with an iff pict in the
lower right side of the screen.  Is this possible?  I would like
to do it in C or I could do a system call if a program exists
that can do it.  Thanks.



Pete
From: djung@economics.adelaide.edu.au
Newsgroups: comp.sys.amiga.programmer
Subject: Old fish - Where? (Disk#79:M2Error)
Date: 10 Apr 92 10:23:06 GMT
Organization: Economics, University of Adelaide

I am looking for the program M2Error from fish 79.  Does anyone know where
I can find it?  Or alternatively where I can ftp old fish disks?

(M2Error displays error messages from TDI Modula II error files - I prefer
to use DME over the supplied editor)

Please respond my e-mail.  Thanks.

				-David Jung.

djung@eco.adelaide.edu.au
University of Adelaide
South Australia
From: jow@hcast.UUCP (Juergen Weinelt)
Newsgroups: comp.sys.amiga.programmer
Subject: Re: PasTeX
Date: 9 Apr 92 23:34:25 GMT
Organization: Private

In article <1992Apr7.234424.16477@acsu.buffalo.edu> opnsmurf@ubvmsb.cc.buffalo.edu (Da Smurf) writes:
> In article <ku1gtiINN1ep@utkcs2.cs.utk.edu>, levi@cs.utk.edu (David Levi) writes...
> q>
> q>Since nobody in c.s.a.applications answered, I'm asking this here.  I need
> q>to get PasTeX working, but I'm having a problem with DVIPrint.  It keeps
> q>popping up requestors asking for volumes like '360x360.1' or '180x120.4'
> q>These look like printer resolutions.  What do I need to do?  Any help
> q>is really appreciated.
>
>        i suspect these disks should hold fonts for those resolutions
> (just a guess).

Good guess. PasTeX looks for its fonts (or, rather, for the fonts' pk files)
in several places, and under several names. Those can be configured with
some files in the TeX:config directory (DVIPrint.fnt and ShowDVI.fnt, if I
remember correctly). You'll have to edit those files to fit your configuration,
but be warned, it could be a little complicated.

My configuration (pk dirs and pk names) is somewhat different from the
standard assumed by PasTeX, and it took me several hours to find out
what to change (maybe I'm just plain stupid :-).

If you're trying to use PasTeX on a floppy-only system (no HD drive
[oops, talking of a "hard disk drive", not a "high density drive", of course]),
you'll need those volumes mentioned above for all those pk files.
On a HD system, you can probably delete most or even all of them.

My configuration files contain just the following lines:

 |
 |  pkenv       tex:pk
 |
 |  pk_str      %d/%s.pk
 |

The "pkenv" means: all pk-files are stored in the directory "tex:pk".

The "pk_str" means: the file names for the pk-files are "name.pk", and
they're stored in drawers named "resolution".

Example: The pk-file for the "cmr10" font, in the 100 DPI resolution, would
         be found as "tex:pk/100/cmr10.pk".

Remember, this reflects just my own setup. It will probably not work with
your installation.

BTW, SnoopDos might be VERY useful for this installation procedure. It'll
help you find out where PasTeX THINKS the pk files should be. You'll
find errors in your configuration files much faster that way!

--
  o  _         Juergen Weinelt, Germany
  | (_) \/\/   UUCP: {uunet|rutgers}!cbmvax!cbmehq!cbmger!imart!hcast!jow
  '