Re: CASpectralProcessor and general 64 bit SDK compatibility
Re: CASpectralProcessor and general 64 bit SDK compatibility
- Subject: Re: CASpectralProcessor and general 64 bit SDK compatibility
- From: james mccartney <email@hidden>
- Date: Thu, 6 Mar 2008 12:09:04 -0800
This will be fixed in the next SDK. In the meantime you can make the
following change:
*** 63,71 ****
#else
static __inline__ int CountLeadingZeroes(int arg) {
! #if defined(__ppc__)
__asm__ volatile("cntlzw %0, %1" : "=r" (arg) : "r" (arg));
! #elif defined(__i386__)
__asm__ volatile(
"bsrl %0, %0\n\t"
"movl $63, %ìx\n\t"
--- 63,71 ----
#else
static __inline__ int CountLeadingZeroes(int arg) {
! #if TARGET_CPU_PPC || TARGET_CPU_PPC64
__asm__ volatile("cntlzw %0, %1" : "=r" (arg) : "r" (arg));
! #elif TARGET_CPU_X86 || TARGET_CPU_X86_64
__asm__ volatile(
"bsrl %0, %0\n\t"
"movl $63, %ìx\n\t"
On Mar 6, 2008, at 10:47 AM, William Stewart wrote:
Yes - we should look at this -
Bill
On Mar 5, 2008, at 2:13 AM, Heinrich Fink wrote:
Hi,
I used the new SpectralProcessor in the CoreAudio SDK for my
current AU-based project.
Running in 64bit mode I get a crash in
CASpectralProcessor.cpp:
Line90: mFFTSetup = vDSP_create_fftsetup (mLog2FFTSize, FFT_RADIX2);
And that is because mLog2FFTSize is screwed, because of:
Line90: mLog2FFTSize(Log2Ceil(mFFTSize)),
Log2Ceil uses
CABitOperations.h:
Line80: static __inline__ int CountLeadingZeroes(int arg) {...}
and that method is not defined for 64 bit architectures.
So my questions:
Will the PublicUtility containing some really useful stuff like the
SpectralProcessor be moved for 64bit compatibility?
The same question for the C++ AudioUnit SDK, compiling that in
64bit yields a lot of implicit conversion warnings.
Will the vDSP-part of the veclib-framework work with 64bit
architectures, and if, does it take advantage of it?
Thanks,
Heinrich
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
@apple.com
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden