Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: wavegain binary for OS X? (Read 4610 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

wavegain binary for OS X?

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.

wavegain binary for OS X?

Reply #1
Quote
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/

wavegain binary for OS X?

Reply #2
Quote
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: [Select]
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

wavegain binary for OS X?

Reply #3
Code: [Select]
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: [Select]
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: [Select]
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?

wavegain binary for OS X?

Reply #4
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: [Select]
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...

wavegain binary for OS X?

Reply #5
Quote
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.

wavegain binary for OS X?

Reply #6
I would like to host an OSX compile of WaveGain at RareWares. Could you please send a build of it to my mail?

wavegain binary for OS X?

Reply #7
Quote
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.

 

wavegain binary for OS X?

Reply #8
is this app taking pipe as input (ffmpeg would be the source) on OS X ?
PANIC: CPU 1: Cache Error (unrecoverable - dcache data) Eframe = 0x90000000208cf3b8
NOTICE - cpu 0 didn't dump TLB, may be hung