Kevin Cosgrove | 1 Sep 07:36 2004

Re: Fedora Core 2 & ALSA & SoX


On 9 August 2004 at 22:04, Chris Bagwell <chris <at> cnpbagwell.com> wrote:

> Just wanted to let you know that I found part of my issues with Fedora 
> Core 2 and ALSA.  Turns out Fedora renamed its kernel source package 
> from "kernel-sources" to "kernel-sourcecode" after two kernel updates. 
> It has a nasty side effect that your kernel binaries get upgraded but 
> not the source code unless you manually catch the name change and 
> install the new source package yourself.  So I was previously compiling 
> the ALSA sox driver with mismatching headers and is the source of the 
> ioctl() error.
> 
> So I corrected that problem and tried to recompile.  Now I getting the 
> "__user" symbol problem that others have mentioned.  This is with Linux 
> Kernel 2.6.6.
> 
> You mentioned the link http://lwn.net/Articles/28348/ in your past email 
> that talks about compiler.h for that #define.
> 
> Well, if I look at /usr/include/linux/compiler.h then the #define __user 
> is not in there.  If I look at /usr/src/linux*/include/linux/compiler.h 
> then its a different-but-similar header file and does include the __user 
> #define.  Looks like RedHat is not keeping the two files in sync right now.
> 
> Until they resolve that, then I don't think sox will compile with ALSA 
> under a clean-install Fedora.  I'm guessing that other distributions may 
> have the same issue.
> 
> This issue is on top of the fact that Fedora is not installing 
> /usr/src/linux*/include/sound into /usr/include.
(Continue reading)

Chris Bagwell | 1 Sep 21:32 2004

SoX CVS reorganization

Hi all,

I'm in the process of reorginizing SoX's CVS layout and Sourceforge just
sent notice that part of that work has been completed.

If you have a checked out copy of SoX from CVS then you'll need to
delete the old directory and recheck it out.

Also, CVS won't be compilable for a day or so until I finish updating
the Makefiles to handle the new directory structures.

Chris

-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click
Jimen Ching | 1 Sep 22:36 2004

Re: Fedora Core 2 & ALSA & SoX

On Tue, 31 Aug 2004, Kevin Cosgrove wrote:
>For what it's worth, on my Mandrake 9.0 system, neither
>/usr/src/linux-*/include/linux/compiler.h nor
>/usr/include/linux/compiler.h contain a "#define __user" statement.
>Sounds like trouble here, right?  I've already mentioned that I can't
>compile SoX here with ALSA. Kernels here are all 2.4.19 based.

Yes.  __user was originally added to 2.6 only.  It is used in some kernel
checking tool.  This tool isn't being back-ported.  So __user will always
be empty in 2.4.  Doing a search on google, it looks like people are
sending patches to add this symbol into compiler.h in 2.4.  The patch
seems to be against 2.4.27.  Has anyone tried compiling the latest ALSA
code with this kernel?

--jc
--

-- 
Jimen Ching (WH6BRR)      jching <at> flex.com     wh6brr <at> uhm.ampr.org

-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click
Chris Bagwell | 2 Sep 20:34 2004

Re: Using the output of stat - v in a script

I'm thinking about making some changes so that SoX will sometimes
print to stdout.  Anyone think of something that would break if
I changed "stat" to use stdout?  Anyone know of a program that
specificly looks at sox's stderr? The most typical example is
below were stderr is redirected to stdout and then the
script looks at stdout.

I'm also thining about adding in more status information;
like % complete like madplay or oggplay does.  I'll have to
add support to all the startread()'s to store a filelength
value though.

Chris

On Tue, Aug 31, 2004 at 09:50:04AM -1000, Jimen Ching wrote:
> On Mon, 30 Aug 2004, Chris Bagwell wrote:
> >
> >standard reply is to do something like this:
> >
> >voladjust=`sox $1 2>&1 -e stat -v`
> >sox $1 -v $voladjust newfile.wav

> Are there any plans to send outputs of stat to stdout?  Seems odd that
> non-error output is coming out of stderr.

-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click
(Continue reading)

Stephen Stocker | 3 Sep 05:08 2004
Picon

Re: Using the output of stat - v in a script

   Hi,

   Just my 2 cents worth, I can't think of anything which would be affected 
that's not easy to change; i.e. scripts which some of us have to read 
stderr. So it sounds good to me. It might even be a bit easier to write 
some new scripts.

   Re the % complete, I personally like to see that information, so I think 
it'd be a nice touch. Just my personal opinion, though. :)

 	Take care,
 	Steve

On Thu, 2 Sep 2004, Chris Bagwell wrote:

> I'm thinking about making some changes so that SoX will sometimes
> print to stdout.  Anyone think of something that would break if
> I changed "stat" to use stdout?  Anyone know of a program that
> specificly looks at sox's stderr? The most typical example is
> below were stderr is redirected to stdout and then the
> script looks at stdout.
>
> I'm also thining about adding in more status information;
> like % complete like madplay or oggplay does.  I'll have to
> add support to all the startread()'s to store a filelength
> value though.
>
> Chris
>
> On Tue, Aug 31, 2004 at 09:50:04AM -1000, Jimen Ching wrote:
(Continue reading)

Kevin Cosgrove | 3 Sep 06:12 2004

Re: Using the output of stat - v in a script


Please don't have % complete, unless there's a way to turn that off.  
Active output like that sort of messes with Makefiles.  Yes, I use 
sox in makefiles, quite a bit actually.

Thanks....

-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click
Jimen Ching | 3 Sep 21:52 2004

Re: Using the output of stat - v in a script

On Thu, 2 Sep 2004, Chris Bagwell wrote:
>I'm thinking about making some changes so that SoX will sometimes print
>to stdout.  Anyone think of something that would break if I changed
>"stat" to use stdout?  Anyone know of a program that specificly looks at
>sox's stderr? The most typical example is below were stderr is redirected
>to stdout and then the script looks at stdout.

I don't know of any apps looking at stderr.  But even if they did, it
should be easy to change.

Now that I think about it.  I'm not sure if a library effect should be
sending output to the console at all.  Perhaps the effect should fill out
a global structure and let the application output the result.  This would
make it a true library.

>I'm also thining about adding in more status information; like % complete
>like madplay or oggplay does.  I'll have to add support to all the
>startread()'s to store a filelength value though.

Instead of a percentage, how about just the current sample or current
byte?  This way, the app can calculate other things besides just percent
complete, like elapsed time or remaining time.

--jc
--
Jimen Ching (WH6BRR)      jching <at> flex.com     wh6brr <at> uhm.ampr.org

-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
(Continue reading)

Norbert Praxl | 5 Sep 11:16 2004
Picon

LD-ADPCM

I want to convert .wav files to .ogg files.
Unfortunatelly the .wav file is a Sanyo LD-ADPCM compressed wave. Is there a 
way to get this audio files converted in .ogg (or something which then can be 
converted to .ogg)?
The file can be played with the Windows Media Player on WinXP but can't be 
played on Linux (xmms, sox, ...). I have the Windows driver (LADP32.inf, 
LADP32.acm) maybe this is of some help.

Would be nice to get some informations from the audio experts.

Norbert

-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click
Chris Bagwell | 8 Sep 00:52 2004

Re: Using the output of stat - v in a script

Jimen Ching wrote:
> Now that I think about it.  I'm not sure if a library effect should be
> sending output to the console at all.  Perhaps the effect should fill out
> a global structure and let the application output the result.  This would
> make it a true library.

Good point... Thats kinda the idea of the st_report/st_warn/st_fail 
functions.  They could be used as hooks to redirect output to a buffer 
or whatever.  The stat effect currently bypasses those functions and 
goes straight to stderr.

I'll probably stick with bypassing those functions in stat for now 
because I don't want to redirect all messages to stdout as pipes would 
stop working.

Chris

--

-- 
  Chris Bagwell <chris at cnpbagwell dot com>     |     Frisco, TX
           http://www.cnpbagwell.com/             |         USA

-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click
Andrzej Kijanowski | 8 Sep 03:32 2004
Picon

Re: Using the output of stat - v in a script


>I'll probably stick with bypassing those functions in stat for now
>because I don't want to redirect all messages to stdout as pipes would
>stop working.

but what about windoze? there's no other way of using stderr but reading
it on the screen (or am I wrong?)
maybe another switch?

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.752 / Virus Database: 503 - Release Date: 04-09-2004

-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click

Gmane