* Sound installed but now what???
@ 1998-11-11 21:04 Bob Taylor
1998-11-11 23:06 ` Chris Albertson
1998-11-12 17:48 ` Guenter Geiger
0 siblings, 2 replies; 19+ messages in thread
From: Bob Taylor @ 1998-11-11 21:04 UTC (permalink / raw)
To: axp-list
My SB AWE64 is now installed (Red Hat 5.1-2.0.35). I execute
play some-file.au and get the following:
sox: Unsupported encoding in Sun/NeXT header.
Only U-law, signed bytes, signed words, and ADPCM are supported.
This works fine on my Intel! Now what?? Any help will be MUCH appreciated!
Bob
BTW play is a shell script containing the line:
/usr/bin/sox $1 -t .au - > /dev/audio
--
+---------------------------------------------------------------+
| Bob Taylor Email: brtaylor@inreach.com |
|---------------------------------------------------------------|
| Like the ad says, at 300 dpi you can tell she's wearing a |
| swimsuit. At 600 dpi you can tell it's wet. At 1200 dpi you |
| can tell it's painted on. I suppose at 2400 dpi you can tell |
| if the paint is giving her a rash. (So says Joshua R. Poulson)|
+---------------------------------------------------------------+
^ permalink raw reply [flat|nested] 19+ messages in thread* Re: Sound installed but now what??? 1998-11-11 21:04 Sound installed but now what??? Bob Taylor @ 1998-11-11 23:06 ` Chris Albertson 1998-11-11 23:10 ` Wes Bauske 1998-11-12 17:48 ` Guenter Geiger 1 sibling, 1 reply; 19+ messages in thread From: Chris Albertson @ 1998-11-11 23:06 UTC (permalink / raw) To: axp-list Bob Taylor wrote: > > My SB AWE64 is now installed (Red Hat 5.1-2.0.35). I execute > play some-file.au and get the following: > > sox: Unsupported encoding in Sun/NeXT header. > Only U-law, signed bytes, signed words, and ADPCM are supported. > > This works fine on my Intel! Now what?? Any help will be MUCH appreciated! I can guess. There is a "magic number" in the file and it is binary. The code (sox) is to dumb to know it needs to byteswap the number when running on a big endian machine. This is an easy problem to fix if you have the source code. -- --Chris Albertson chris@topdog.logicon.com Voice: 626-351-0089 X127 Logicon RDA, Pasadena California Fax: 626-351-0699 ^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: Sound installed but now what??? 1998-11-11 23:06 ` Chris Albertson @ 1998-11-11 23:10 ` Wes Bauske 1998-11-11 23:14 ` Larry Snyder 0 siblings, 1 reply; 19+ messages in thread From: Wes Bauske @ 1998-11-11 23:10 UTC (permalink / raw) To: axp-list Chris Albertson wrote: > > Bob Taylor wrote: > > > > My SB AWE64 is now installed (Red Hat 5.1-2.0.35). I execute > > play some-file.au and get the following: > > > > sox: Unsupported encoding in Sun/NeXT header. > > Only U-law, signed bytes, signed words, and ADPCM are supported. > > > > This works fine on my Intel! Now what?? Any help will be MUCH appreciated! > > I can guess. There is a "magic number" in the file and it is > binary. The code (sox) is to dumb to know it needs to byteswap > the number when running on a big endian machine. This is an easy > problem to fix if you have the source code. > Alphas run little endian so if it worked on Intel, it should work on the Alpha. Maybe just a bug in sox. -- Regards, Wes ^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: Sound installed but now what??? 1998-11-11 23:10 ` Wes Bauske @ 1998-11-11 23:14 ` Larry Snyder 1998-11-12 1:59 ` Bob Taylor 0 siblings, 1 reply; 19+ messages in thread From: Larry Snyder @ 1998-11-11 23:14 UTC (permalink / raw) To: axp-list; +Cc: axp-list What happens if you: cat some-file.au > /dev/audio? That would eliminate sox.... -ls- "Wes Bauske" <wsb@paralleldata.com> wrote: > Chris Albertson wrote: > > > > Bob Taylor wrote: > > > > > > My SB AWE64 is now installed (Red Hat 5.1-2.0.35). I execute > > > play some-file.au and get the following: > > > > > > sox: Unsupported encoding in Sun/NeXT header. > > > Only U-law, signed bytes, signed words, and ADPCM are supported. > > > > > > This works fine on my Intel! Now what?? Any help will be MUCH appreciated! > > > > I can guess. There is a "magic number" in the file and it is > > binary. The code (sox) is to dumb to know it needs to byteswap > > the number when running on a big endian machine. This is an easy > > problem to fix if you have the source code. > > > > Alphas run little endian so if it worked on Intel, > it should work on the Alpha. Maybe just a bug in sox. > > -- > Regards, > > Wes > > -- > To unsubscribe: send e-mail to axp-list-request@redhat.com with > 'unsubscribe' as the subject. Do not send it to axp-list@redhat.com ^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: Sound installed but now what??? 1998-11-11 23:14 ` Larry Snyder @ 1998-11-12 1:59 ` Bob Taylor 1998-11-12 3:08 ` Stephen Williams 0 siblings, 1 reply; 19+ messages in thread From: Bob Taylor @ 1998-11-12 1:59 UTC (permalink / raw) To: axp-list In message <199811112314.SAA04315@ra.lexis-nexis.com>, Larry Snyder writes: > What happens if you: cat some-file.au > /dev/audio? > That would eliminate sox.... Nothing like a simple solution! Works great! Thanks. Looks like the Alpha is big endian. Bob -- +---------------------------------------------------------------+ | Bob Taylor Email: brtaylor@inreach.com | |---------------------------------------------------------------| | Like the ad says, at 300 dpi you can tell she's wearing a | | swimsuit. At 600 dpi you can tell it's wet. At 1200 dpi you | | can tell it's painted on. I suppose at 2400 dpi you can tell | | if the paint is giving her a rash. (So says Joshua R. Poulson)| +---------------------------------------------------------------+ ^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: Sound installed but now what??? 1998-11-12 1:59 ` Bob Taylor @ 1998-11-12 3:08 ` Stephen Williams 1998-11-12 3:59 ` Larry Snyder ` (2 more replies) 0 siblings, 3 replies; 19+ messages in thread From: Stephen Williams @ 1998-11-12 3:08 UTC (permalink / raw) To: axp-list In message <199811112314.SAA04315@ra.lexis-nexis.com>, Larry Snyder writes: > What happens if you: cat some-file.au > /dev/audio? > That would eliminate sox.... brtaylor@inreach.com said: > Nothing like a simple solution! Yep. brtaylor@inreach.com said: > Looks like the Alpha is big endian. Nope. I quote from the "Alpha Architecture Reference manual": "A longword is specified by its address A, the address of the byte containing bit 0." I find that the i386 to alpha transition is easier for the image processing guy (like me) then the i386 to SPARC switch:-) -- Steve Williams "The woods are lovely, dark and deep. steve@icarus.com But I have promises to keep, steve@picturel.com and lines to code before I sleep, http://www.picturel.com And lines to code before I sleep." ^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: Sound installed but now what??? 1998-11-12 3:08 ` Stephen Williams @ 1998-11-12 3:59 ` Larry Snyder 1998-11-12 4:31 ` Wes Bauske 1998-11-12 7:47 ` Sound installed but now what??? Bob Taylor 2 siblings, 0 replies; 19+ messages in thread From: Larry Snyder @ 1998-11-12 3:59 UTC (permalink / raw) To: axp-list Howdy -- I should have included that caveat in my earlier post. What I said was it eliminates sox. I haven't gotten deep enough into my own boxen to even know which direction they look at data. (sorry, I leave that to they who can speak [c|c++] fluently). If you can cat the file to /dev/audio, then your problem is with sox, not the driver. This is a good thing. OTOH, it means a bit of surgery is probably in order on sox. This is not a good thing.....Anyhow, if there's an easy fix, please post it. I can apply a canned patch as well as the next guy :-) Hey Steve -- are you the Steve Williams I know? -ls- Stephen Williams <steve@icarus.com> wrote: > In message <199811112314.SAA04315@ra.lexis-nexis.com>, Larry Snyder writes: > > What happens if you: cat some-file.au > /dev/audio? > > That would eliminate sox.... > > brtaylor@inreach.com said: > > Nothing like a simple solution! > > Yep. > > brtaylor@inreach.com said: > > Looks like the Alpha is big endian. > > Nope. I quote from the "Alpha Architecture Reference manual": > > "A longword is specified by its address A, the address of > the byte containing bit 0." > > I find that the i386 to alpha transition is easier for the image processing > guy (like me) then the i386 to SPARC switch:-) > > -- > Steve Williams "The woods are lovely, dark and deep. > steve@icarus.com But I have promises to keep, > steve@picturel.com and lines to code before I sleep, > http://www.picturel.com And lines to code before I sleep." > > > -- > To unsubscribe: send e-mail to axp-list-request@redhat.com with > 'unsubscribe' as the subject. Do not send it to axp-list@redhat.com ^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: Sound installed but now what??? 1998-11-12 3:08 ` Stephen Williams 1998-11-12 3:59 ` Larry Snyder @ 1998-11-12 4:31 ` Wes Bauske 1998-11-12 4:57 ` Ronald Bruck 1998-11-12 7:47 ` Sound installed but now what??? Bob Taylor 2 siblings, 1 reply; 19+ messages in thread From: Wes Bauske @ 1998-11-12 4:31 UTC (permalink / raw) To: axp-list Stephen Williams wrote: > > In message <199811112314.SAA04315@ra.lexis-nexis.com>, Larry Snyder writes: > > What happens if you: cat some-file.au > /dev/audio? > > That would eliminate sox.... > > brtaylor@inreach.com said: > > Nothing like a simple solution! > > Yep. > > brtaylor@inreach.com said: > > Looks like the Alpha is big endian. > > Nope. I quote from the "Alpha Architecture Reference manual": > > "A longword is specified by its address A, the address of > the byte containing bit 0." > > I find that the i386 to alpha transition is easier for the image processing > guy (like me) then the i386 to SPARC switch:-) Alphas and Intels are little endian. The simple solution was to elimate sox, which apparently has some Alpha related bugs in it. Look at /usr/lib/magic for info on file types: Audio files # Sun/NeXT audio data 0 string .snd Sun/NeXT audio data: >12 belong 1 8-bit ISDN u-law, >12 belong 2 8-bit linear PCM [REF-PCM], >12 belong 3 16-bit linear PCM, >12 belong 4 24-bit linear PCM, >12 belong 5 32-bit linear PCM, >12 belong 6 32-bit IEEE floating point, >12 belong 7 64-bit IEEE floating point, >12 belong 23 8-bit ISDN u-law compressed (CCITT G.721 ADPCM voice data encoding), >12 belong 24 compressed (8-bit G.722 ADPCM) >12 belong 25 compressed (3-bit G.723 ADPCM), >12 belong 26 compressed (5-bit G.723 ADPCM), >12 belong 27 8-bit A-law, >20 belong 1 mono, >20 belong 2 stereo, >20 belong 4 quad, >16 belong >0 %d Hz # DEC systems (e.g. DECstation 5000) use a variant of the Sun/NeXT format # that uses little-endian encoding and has a different magic number 0 lelong 0x0064732E DEC audio data: >12 lelong 1 8-bit ISDN u-law, >12 lelong 2 8-bit linear PCM [REF-PCM], >12 lelong 3 16-bit linear PCM, >12 lelong 4 24-bit linear PCM, >12 lelong 5 32-bit linear PCM, >12 lelong 6 32-bit IEEE floating point, >12 lelong 7 64-bit IEEE floating point, >12 lelong 23 8-bit ISDN u-law compressed (CCITT G.721 ADPCM voice data encoding), >20 lelong 1 mono, >20 lelong 2 stereo, >20 lelong 4 quad, >16 lelong >0 %d Hz Wes ^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: Sound installed but now what??? 1998-11-12 4:31 ` Wes Bauske @ 1998-11-12 4:57 ` Ronald Bruck 1998-11-12 6:52 ` Wes Bauske 1998-11-12 12:41 ` Paul Tomblin 0 siblings, 2 replies; 19+ messages in thread From: Ronald Bruck @ 1998-11-12 4:57 UTC (permalink / raw) To: axp-list >Stephen Williams wrote: > >Alphas and Intels are little endian. > Actually, I thought the Alpha could go little-endian OR big-endian. --Ron Bruck ^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: Sound installed but now what??? 1998-11-12 4:57 ` Ronald Bruck @ 1998-11-12 6:52 ` Wes Bauske 1998-11-12 12:41 ` Paul Tomblin 1 sibling, 0 replies; 19+ messages in thread From: Wes Bauske @ 1998-11-12 6:52 UTC (permalink / raw) To: axp-list Ronald Bruck wrote: > > >Stephen Williams wrote: > > > >Alphas and Intels are little endian. > > > > Actually, I thought the Alpha could go little-endian OR big-endian. > > --Ron Bruck > It could be but I know VMS is also little endian. I would think if Linux runs DEC UNIX binaries it too is little endian. And, WinNT is little endian too. /usr/lib/magic says: # ECOFF magic for OSF/1 and Linux (only tested under Linux though) # # from Erik Troan (ewt@redhat.com) examining od dumps, so this # could be wrong # updated by David Mosberger (davidm@azstarnet.com) based on # GNU BFD and MIPS info found below. # 0 leshort 0x0183 ECOFF alpha >24 leshort 0407 executable >24 leshort 0410 pure >24 leshort 0413 demand paged >8 long >0 not stripped >8 long 0 stripped >23 leshort >0 - version %ld. Power PC's go both ways but I don't recall ever reading that Alphas do that too. Wes ^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: Sound installed but now what??? 1998-11-12 4:57 ` Ronald Bruck 1998-11-12 6:52 ` Wes Bauske @ 1998-11-12 12:41 ` Paul Tomblin 1998-11-12 16:22 ` paride for alpha?? A. Rodriguez-Gonzalez 1 sibling, 1 reply; 19+ messages in thread From: Paul Tomblin @ 1998-11-12 12:41 UTC (permalink / raw) To: axp-list Quoting Ronald Bruck (bruck@math.usc.edu): > >Stephen Williams wrote: > > > >Alphas and Intels are little endian. > > > > Actually, I thought the Alpha could go little-endian OR big-endian. I don't think so, but I haven't seen any direct evidence either way. I know the MIPS chips (which DEC used for a couple of DECStations before the Alpha came out) are either endian - and the MIPS C compiler had a flag to generate either type of code - but even on the DECStations that used MIPS they used the same endianness as Intel and Vax. Since the Alpha was made specifically for (Open)VMS, DEC Unix and NT, all of which were originally on little endian machines, I don't see why they would have made it switchable. The MIPS chips, on the other hand, were designed to be used in a lot of different architectures, from SGIs to DECs to Nintendo, so making it switchable makes more sense. -- "Linux's homebase is currently commodity network and server infrastructure. By folding extended functionality ... into today's commodity services, we raise the bar & change the rules of the game." - Microsoft leaks their strategy for monopolizing the Internet and the desktop. ^ permalink raw reply [flat|nested] 19+ messages in thread
* paride for alpha?? 1998-11-12 12:41 ` Paul Tomblin @ 1998-11-12 16:22 ` A. Rodriguez-Gonzalez [not found] ` <A.Rodriguez-Gonzalez@bristol.ac.uk> 0 siblings, 1 reply; 19+ messages in thread From: A. Rodriguez-Gonzalez @ 1998-11-12 16:22 UTC (permalink / raw) To: axp-list Hello everybody ... i've got just a question about paride... has anybody tried to plug a zip drive on the parallel port of a multia ( aka noname ) ??, i've done it on an i386 but i don't now how well the paride module will compile... any help would be appreciated.... cheers, __________________________________________________________________________ Agustin Rodriguez-Gonzalez H.H Physics Laboratory, University of Bristol ^ permalink raw reply [flat|nested] 19+ messages in thread
[parent not found: <A.Rodriguez-Gonzalez@bristol.ac.uk>]
* Re: paride for alpha?? [not found] ` <A.Rodriguez-Gonzalez@bristol.ac.uk> @ 1998-11-12 16:43 ` xeno 0 siblings, 0 replies; 19+ messages in thread From: xeno @ 1998-11-12 16:43 UTC (permalink / raw) To: axp-list Paride compiles fine. I've used it with an hp cdrom drive. Eric ^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: Sound installed but now what??? 1998-11-12 3:08 ` Stephen Williams 1998-11-12 3:59 ` Larry Snyder 1998-11-12 4:31 ` Wes Bauske @ 1998-11-12 7:47 ` Bob Taylor 1998-11-12 9:24 ` mgraffam 1998-11-12 20:17 ` Wes Bauske 2 siblings, 2 replies; 19+ messages in thread From: Bob Taylor @ 1998-11-12 7:47 UTC (permalink / raw) To: axp-list In message <199811120308.TAA19693@icarus.com>, Stephen Williams writes: > In message <199811112314.SAA04315@ra.lexis-nexis.com>, Larry Snyder writes: > > What happens if you: cat some-file.au > /dev/audio? > > That would eliminate sox.... > > brtaylor@inreach.com said: > > Nothing like a simple solution! > > Yep. > > brtaylor@inreach.com said: > > Looks like the Alpha is big endian. > > Nope. I quote from the "Alpha Architecture Reference manual": > > "A longword is specified by its address A, the address of > the byte containing bit 0." I've looked at the sources. I have found one anonimally. There is a function that prints messages to stderr and I no see 'em. I also don't seem to find why sox doesn't work on the Alpha but does on my Pentium (both boxes are running Red Hat 5.1. This is weird. In the file au.c: #define SUN_MAGIC 0x2e736e64 /* Really '.snd' */ #define SUN_INV_MAGIC 0x646e732e /* '.snd' upside-down */ . . #define SUN_HDRSIZE 24 /* Size of minimal header */ . #define SUN_ULAW 1 /* u-law encoding */ If SUN_INV_MAGIC is found then swap is set to 1. The header of a .au file is: .snd^@^@^@(^@^@dT^@^@^@^A where .snd = SUN_MAGIC ^@^@^@( = SUN_HDRSIZE ^@^@dT = data size ^@^@^@^A = SUN_ULAW (encoding) I think I just saw a mistake, the SUN_HDRSIZE and SUN_ULAW should be 24L and 1L? Anyway the error is reported on the encoding. The header seems to be big endian. Bob -- +---------------------------------------------------------------+ | Bob Taylor Email: brtaylor@inreach.com | |---------------------------------------------------------------| | Like the ad says, at 300 dpi you can tell she's wearing a | | swimsuit. At 600 dpi you can tell it's wet. At 1200 dpi you | | can tell it's painted on. I suppose at 2400 dpi you can tell | | if the paint is giving her a rash. (So says Joshua R. Poulson)| +---------------------------------------------------------------+ ^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: Sound installed but now what??? 1998-11-12 7:47 ` Sound installed but now what??? Bob Taylor @ 1998-11-12 9:24 ` mgraffam 1998-11-12 10:14 ` Bob Taylor 1998-11-12 20:17 ` Wes Bauske 1 sibling, 1 reply; 19+ messages in thread From: mgraffam @ 1998-11-12 9:24 UTC (permalink / raw) To: axp-list On Wed, 11 Nov 1998, Bob Taylor wrote: > I've looked at the sources. I have found one anonimally. There is a function > that prints messages to stderr and I no see 'em. I also don't seem to > find why sox doesn't work on the Alpha but does on my Pentium (both > boxes are running Red Hat 5.1. This is weird. FWIW, my Alpha (UDB) runs sox just fine. I am using the RH 5.1 rpm. Michael J. Graffam (mgraffam@idsi.net) ^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: Sound installed but now what??? 1998-11-12 9:24 ` mgraffam @ 1998-11-12 10:14 ` Bob Taylor 0 siblings, 0 replies; 19+ messages in thread From: Bob Taylor @ 1998-11-12 10:14 UTC (permalink / raw) To: axp-list In message <Pine.LNX.3.96.981112042207.20325B-100000@albert>, mgraffam@idsi.net writes: > On Wed, 11 Nov 1998, Bob Taylor wrote: > > > I've looked at the sources. I have found one anonimally. There is a functio >n > > that prints messages to stderr and I no see 'em. I also don't seem to > > find why sox doesn't work on the Alpha but does on my Pentium (both > > boxes are running Red Hat 5.1. This is weird. > > FWIW, my Alpha (UDB) runs sox just fine. > > I am using the RH 5.1 rpm. So am I! 164LX. Even more weird. Bob -- +---------------------------------------------------------------+ | Bob Taylor Email: brtaylor@inreach.com | |---------------------------------------------------------------| | Like the ad says, at 300 dpi you can tell she's wearing a | | swimsuit. At 600 dpi you can tell it's wet. At 1200 dpi you | | can tell it's painted on. I suppose at 2400 dpi you can tell | | if the paint is giving her a rash. (So says Joshua R. Poulson)| +---------------------------------------------------------------+ ^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: Sound installed but now what??? 1998-11-12 7:47 ` Sound installed but now what??? Bob Taylor 1998-11-12 9:24 ` mgraffam @ 1998-11-12 20:17 ` Wes Bauske 1998-11-12 23:50 ` Bob Taylor 1 sibling, 1 reply; 19+ messages in thread From: Wes Bauske @ 1998-11-12 20:17 UTC (permalink / raw) To: axp-list Bob Taylor wrote: > > In the file au.c: > > #define SUN_MAGIC 0x2e736e64 /* Really '.snd' */ > #define SUN_INV_MAGIC 0x646e732e /* '.snd' upside-down */ > . > . > #define SUN_HDRSIZE 24 /* Size of minimal header */ > . > #define SUN_ULAW 1 /* u-law encoding */ > > If SUN_INV_MAGIC is found then swap is set to 1. The header of a .au file > is: > > .snd^@^@^@(^@^@dT^@^@^@^A > > where > > .snd = SUN_MAGIC > ^@^@^@( = SUN_HDRSIZE > ^@^@dT = data size > ^@^@^@^A = SUN_ULAW (encoding) > > I think I just saw a mistake, the SUN_HDRSIZE and SUN_ULAW should be 24L > and 1L? Anyway the error is reported on the encoding. > > The header seems to be big endian. > OK now I see how there might be some confusion. Whether a particular file format is big endian or little endian is up to the creator of the format. This does not mean the machine you use it on is the same endianess. Given the specification of the file format, one can easily convert between endianess and do whatever one likes with the file. However, no matter what endian system you have, you must have code in the program to take care of that problem. I do the same thing in my own code. In much of the file formats used in the petroleum industry, big endian wins out because when the format was created, the creator happened to be on a big endian system. So, whenever I have to read those formats on Intel/Alpha, I have to swap bytes around to make any sense of the data. So you need to worry about both the endianess of the machine and the endianess of the file and have code to make them match up or you get nonsense. Wes ^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: Sound installed but now what??? 1998-11-12 20:17 ` Wes Bauske @ 1998-11-12 23:50 ` Bob Taylor 0 siblings, 0 replies; 19+ messages in thread From: Bob Taylor @ 1998-11-12 23:50 UTC (permalink / raw) To: axp-list In message <364B424B.2B659C4B@paralleldata.com>, "Wes Bauske" writes: > Bob Taylor wrote: > > > > In the file au.c: > > > > #define SUN_MAGIC 0x2e736e64 /* Really '.snd' */ > > #define SUN_INV_MAGIC 0x646e732e /* '.snd' upside-down */ > > . > > . > > #define SUN_HDRSIZE 24 /* Size of minimal header * >/ > > . > > #define SUN_ULAW 1 /* u-law encoding */ > > > > If SUN_INV_MAGIC is found then swap is set to 1. The header of a .au file > > is: > > > > .snd^@^@^@(^@^@dT^@^@^@^A > > > > where > > > > .snd = SUN_MAGIC > > ^@^@^@( = SUN_HDRSIZE > > ^@^@dT = data size > > ^@^@^@^A = SUN_ULAW (encoding) > > > > I think I just saw a mistake, the SUN_HDRSIZE and SUN_ULAW should be 24L > > and 1L? Anyway the error is reported on the encoding. > > > > The header seems to be big endian. > > > > OK now I see how there might be some confusion. > Whether a particular file format is big endian or > little endian is up to the creator of the format. > > This does not mean the machine you use it on is > the same endianess. Given the specification of > the file format, one can easily convert between > endianess and do whatever one likes with the file. > However, no matter what endian system you have, you > must have code in the program to take care of > that problem. I do the same thing in my own code. > In much of the file formats used in the petroleum > industry, big endian wins out because when the > format was created, the creator happened to be on > a big endian system. So, whenever I have to read > those formats on Intel/Alpha, I have to swap bytes > around to make any sense of the data. > > So you need to worry about both the endianess of > the machine and the endianess of the file and have > code to make them match up or you get nonsense. Quite true. However, sox looks at the MAGIC 4 bytes as a long, compares that with the #define and determins endianess from that. It appears that the correct endianess is detected (at least the error message is not printed). Where I get a failure is the encoding code. The SUN_ULAW is not detected and the case falls through to the default case printing the error message. I read an email on this list where someone is running sox fine on their Red Hat 5.1 Alpha. I just rebuilt sox from the sox src rpm from my 5.1 CD and still get the same error. It is not worth my time to continue with this. I will try the sox with 5.2. Thanks everyone for your comments! Bob -- +---------------------------------------------------------------+ | Bob Taylor Email: brtaylor@inreach.com | |---------------------------------------------------------------| | Like the ad says, at 300 dpi you can tell she's wearing a | | swimsuit. At 600 dpi you can tell it's wet. At 1200 dpi you | | can tell it's painted on. I suppose at 2400 dpi you can tell | | if the paint is giving her a rash. (So says Joshua R. Poulson)| +---------------------------------------------------------------+ ^ permalink raw reply [flat|nested] 19+ messages in thread
* RE: Sound installed but now what??? 1998-11-11 21:04 Sound installed but now what??? Bob Taylor 1998-11-11 23:06 ` Chris Albertson @ 1998-11-12 17:48 ` Guenter Geiger 1 sibling, 0 replies; 19+ messages in thread From: Guenter Geiger @ 1998-11-12 17:48 UTC (permalink / raw) To: axp-list Actually Redhat ships (or used to ship) a broken sox. Just get the new version of sox (12.14) from sunsite and it will be OK. As to endianess and the like. Alpha is little endian. The problem with sox used to be the 64 bit long type. The fix was part of the Debian Alpha sox package. Guenter > -----Original Message----- > From: brtaylor@inreach.com [mailto:brtaylor@inreach.com] > Sent: Wednesday, November 11, 1998 1:04 PM > To: axp-list@redhat.com > Subject: Sound installed but now what??? > > > My SB AWE64 is now installed (Red Hat 5.1-2.0.35). I execute > play some-file.au and get the following: > > sox: Unsupported encoding in Sun/NeXT header. > Only U-law, signed bytes, signed words, and ADPCM are supported. > > This works fine on my Intel! Now what?? Any help will be MUCH > appreciated! > > Bob > > BTW play is a shell script containing the line: > > /usr/bin/sox $1 -t .au - > /dev/audio > > -- > +---------------------------------------------------------------+ > | Bob Taylor Email: brtaylor@inreach.com | > |---------------------------------------------------------------| > | Like the ad says, at 300 dpi you can tell she's wearing a | > | swimsuit. At 600 dpi you can tell it's wet. At 1200 dpi you | > | can tell it's painted on. I suppose at 2400 dpi you can tell | > | if the paint is giving her a rash. (So says Joshua R. Poulson)| > +---------------------------------------------------------------+ > > > -- > To unsubscribe: send e-mail to axp-list-request@redhat.com with > 'unsubscribe' as the subject. Do not send it to axp-list@redhat.com > ^ permalink raw reply [flat|nested] 19+ messages in thread
end of thread, other threads:[~1998-11-13 0:01 UTC | newest]
Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-11-11 21:04 Sound installed but now what??? Bob Taylor
1998-11-11 23:06 ` Chris Albertson
1998-11-11 23:10 ` Wes Bauske
1998-11-11 23:14 ` Larry Snyder
1998-11-12 1:59 ` Bob Taylor
1998-11-12 3:08 ` Stephen Williams
1998-11-12 3:59 ` Larry Snyder
1998-11-12 4:31 ` Wes Bauske
1998-11-12 4:57 ` Ronald Bruck
1998-11-12 6:52 ` Wes Bauske
1998-11-12 12:41 ` Paul Tomblin
1998-11-12 16:22 ` paride for alpha?? A. Rodriguez-Gonzalez
[not found] ` <A.Rodriguez-Gonzalez@bristol.ac.uk>
1998-11-12 16:43 ` xeno
1998-11-12 7:47 ` Sound installed but now what??? Bob Taylor
1998-11-12 9:24 ` mgraffam
1998-11-12 10:14 ` Bob Taylor
1998-11-12 20:17 ` Wes Bauske
1998-11-12 23:50 ` Bob Taylor
1998-11-12 17:48 ` Guenter Geiger
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox