shibatch / SSRC

A high quality audio sampling rate converter

Home Page:http://shibatch.sourceforge.net/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Support for PowerPC BE

barracuda156 opened this issue · comments

Given Makefile has commented out line #CFLAGS += -DBIGENDIAN, support for PPC either existed before or is planned to be added? At the moment build for ppc fails with gcc-4.2 (this is after I added definitions to Makefiles to not use Intel SSE):

dft.c: In function ‘dispatch’:
dft.c:276: error: ‘UNROLLMAX’ undeclared (first use in this function)
dft.c:276: error: (Each undeclared identifier is reported only once
dft.c:276: error: for each function it appears in.)
dft.c:277: error: ‘dftf’ undeclared (first use in this function)
dft.c:280: error: ‘nudftfs’ undeclared (first use in this function)
dft.c:280: error: ‘nudftf’ undeclared (first use in this function)
dft.c:285: error: ‘dftb’ undeclared (first use in this function)
dft.c:288: error: ‘nudftbs’ undeclared (first use in this function)
dft.c:288: error: ‘nudftb’ undeclared (first use in this function)
dft.c:296: error: ‘tbutf’ undeclared (first use in this function)
dft.c:299: error: ‘nutbutfs’ undeclared (first use in this function)
dft.c:299: error: ‘nutbutf’ undeclared (first use in this function)
dft.c:304: error: ‘tbutb’ undeclared (first use in this function)
dft.c:307: error: ‘nutbutbs’ undeclared (first use in this function)
dft.c:307: error: ‘nutbutb’ undeclared (first use in this function)
dft.c:313: error: ‘UNROLLMAX2’ undeclared (first use in this function)
dft.c:314: error: ‘butf’ undeclared (first use in this function)
dft.c:317: error: ‘nubutfs’ undeclared (first use in this function)
dft.c:317: error: ‘nubutf’ undeclared (first use in this function)
dft.c:322: error: ‘butb’ undeclared (first use in this function)
dft.c:325: error: ‘nubutbs’ undeclared (first use in this function)
dft.c:325: error: ‘nubutb’ undeclared (first use in this function)
dft.c: In function ‘SleefDFT_execute’:
dft.c:344: error: ‘realSub1’ undeclared (first use in this function)
dft.c:360: error: ‘realSub0’ undeclared (first use in this function)
/usr/bin/gcc-4.2 -Os -arch ppc -std=c99 -I../common/ -DMAXBUTWIDTH=5 -DSLEEFDFT_REAL_IS_FLOAT -std=c99 dft.c -c -o dft.o
dft.c: In function ‘checkISAAvailability’:
dft.c:559: error: ‘getInt’ undeclared (first use in this function)
dft.c: In function ‘SleefDFT_init’:
dft.c:580: error: ‘ISAMAX’ undeclared (first use in this function)
dft.c:581: error: ‘getInt’ undeclared (first use in this function)
dft.c:654: error: ‘getPtr’ undeclared (first use in this function)
make[1]: *** [dft.o] Error 1
make[1]: Leaving directory `/opt/local/var/macports/build/_opt_PPCRosettaPorts_audio_ssrc/ssrc/work/shibatch-SSRC-4adf751/dft'
make: *** [dft.a] Error 2

With gcc12 the build succeeds, though with a number of warnings 'always_inline' function might not be inlinable.

svacchanda$ port -v installed ssrc
The following ports are currently installed:
  ssrc @1.33_0 (active) requested_variants='' platform='darwin 10' archs='ppc' date='2022-08-21T03:23:09+0800'

Nevertheless, I tried using the binary, and it seems not to work as intended:

svacchanda$ /opt/local/bin/ssrc --bits 24 /Users/svacchanda/Desktop/PinkPanther30.wav /Users/svacchanda/Desktop/PinkPantherTEST.wav
Shibatch sampling rate converter version 1.33(single precision)

Error: Only PCM is supported.