Help - Search - Members - Calendar
Full Version: wavegain binary for OS X?
Hydrogenaudio Forums > Hydrogenaudio Forum > General Audio
paulj
Does anyone know where I can get an OS X binary of wavegain. Alternatively, can somebody tell me how to compile the source on OS X.

Thanks.
john33
QUOTE(paulj @ Nov 3 2003, 12:38 AM)
Does anyone know where I can get an OS X binary of wavegain. Alternatively, can somebody tell me how to compile the source on OS X.

Thanks.

I can't tell you how to compile it as I no experienmce on OS X. However, you will need the source of WaveGain, from Rarewares, and the source of libsndfile 1.0.5 from: http://www.zip.com.au/~erikd/libsndfile/
paulj
QUOTE(john33 @ Nov 3 2003, 06:06 AM)
I can't tell you how to compile it as I no experienmce on OS X. However, you will need the source of WaveGain, from Rarewares, and the source of libsndfile 1.0.5 from: http://www.zip.com.au/~erikd/libsndfile/

Thanks, I compiled and installed libsndfile. The compile errors were reduced after this. I now just get the following errors:
CODE

wavegain.c: In function `dither_output':
wavegain.c:71: warning: integer constant is too large for "long" type
wavegain.c: In function `write_gains':
wavegain.c:277: warning: this decimal constant is unsigned only in ISO C90
ld: Undefined symbols:
_main
_AnalyzeSamples
_GetTitleGain
_InitGainAnalysis
_Random_Equi
_Random_Triangular
_scalar16
_sf_close
_sf_command
_sf_open
_sf_perror
_sf_read_float
_sf_write_float
john33
CODE

wavegain.c: In function `dither_output':
wavegain.c:71: warning: integer constant is too large for "long" type

This requires a 64bit int data type which is available in OS X, so I'm not sure what the problem is here.
CODE
wavegain.c: In function `write_gains':
wavegain.c:277: warning: this decimal constant is unsigned only in ISO C90

I don't believe this is of any consequence.
CODE
ld: Undefined symbols:
_main
_AnalyzeSamples
_GetTitleGain
_InitGainAnalysis
_Random_Equi
_Random_Triangular
_scalar16
_sf_close
_sf_command
_sf_open
_sf_perror
_sf_read_float
_sf_write_float

With the exception of main, which requires no definition, the rest are defined in the respective header files. Excluding main, the next 3 are defined in gain_analysis.h, the next 3 in dither.h and the remainder in sndfile.h.

May be someone more familiar with OS X can offer some assistance here?
c15zyx
Don't forget, you gotta link to the sndfile library.
Download libsndfile... then just do a ./configure, make, sudo make install

Then just download the wavegain source and cd to the directory in the terminal. Then type
CODE
gcc -O3 -I. -I/usr/include/sys -lsndfile -o wavegain *.c

*Insert your favorite optimizations here*

Oh, btw... you'll need to remove the sndfile.h file from the directory first, as you'll be using the header linked from libsndfile and it won't work work with OS X anyways...
paulj
QUOTE(c15zyx @ Nov 3 2003, 10:04 AM)
Don't forget, you gotta link to the sndfile library.
...
Oh, btw... you'll need to remove the sndfile.h file from the directory first, as you'll be using the header linked from libsndfile and it won't work work with OS X anyways...

Yayy! Thanks very much for your help.

I'd just replaced the sndfile.h with my new one.
Once I specified the linking on the command line it all worked.

Thanks again. smile.gif
rjamorim
I would like to host an OSX compile of WaveGain at RareWares. Could you please send a build of it to my mail?
paulj
QUOTE(rjamorim @ Nov 3 2003, 12:03 PM)
I would like to host an OSX compile of WaveGain at RareWares. Could you please send a build of it to my mail?

I'll send it out this evening when I get home from work.

I compiled this one on 10.3 using GCC 3.
I'll make sure it also works on my 10.2.8 box to avoid having two compiles.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.