Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Greg Johnson <gjohnson@physics.clarku.edu>
To: axp-list@redhat.com
Subject: Re: bladeenc vs. redhat6
Date: Tue, 14 Sep 1999 18:13:11 -0400	[thread overview]
Message-ID: <19990914181311.A22726@physics.clarku.edu> (raw)
In-Reply-To: <37DD3B54.66A679A3@alphalinux.org>; from Peter Petrakis on Mon, Sep 13, 1999 at 01:58:44PM -0400

On Mon, Sep 13, 1999 at 01:58:44PM -0400, Peter Petrakis wrote:
> Kurt Ludwig wrote:
> > 
> > My friend pete and I ran accross the same thing...
> > we didn'tresearch it a lot, but it's something in compaq's math library vs.
> > the GNU one
> 
> Actually after more testing I found it had the same behavior with or
> with using cpml. Something wierd is going on.
> 

The problem is not with the math library.  It's a sizeof(long) != 4 issue.
The following change got it to work for me.

Greg

--- samplein.c~	Sat Aug  7 11:30:53 1999
+++ samplein.c	Mon Aug 30 01:06:11 1999
@@ -256,8 +256,8 @@
 { 
 	short		wFormatTag;						/* Format category */
   short		wChannels;						/* Number of channels */
-  long		dwSamplesPerSec;			/* Sampling rate */
-  long		dwAvgBytesPerSec;			/* For buffer estimation */
+  int		dwSamplesPerSec;			/* Sampling rate */
+  int		dwAvgBytesPerSec;			/* For buffer estimation */
   short		wBlockAlign;					/* Data block size */
 	short		bitsPerSample;				/* Actually a PCM-specific additional byte... */
 } sFmtChunk;



-- 
Greg Johnson                          gjohnson@physics.clarku.edu
http://physics.clarku.edu/~gjohnson            finger for PGP key


  reply	other threads:[~1999-09-14 22:13 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-09-14 13:25 bladeenc vs. redhat6 Jochen Decker
1999-09-14 14:51 ` Kurt Ludwig
1999-09-13 17:58   ` Peter Petrakis
1999-09-14 22:13     ` Greg Johnson [this message]
1999-09-14 15:02   ` DHCP Darren Breeze
1999-09-14 15:13     ` DHCP Rich Payne
1999-09-14 15:26       ` DHCP Igor Schein
1999-09-14 16:36       ` DHCP hayward
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox