Re: AudioHardwareGetPropertyInfo and Core Audio Java
Re: AudioHardwareGetPropertyInfo and Core Audio Java
- Subject: Re: AudioHardwareGetPropertyInfo and Core Audio Java
- From: Jeff Moore <email@hidden>
- Date: Mon, 29 Sep 2008 09:22:32 -0700
Regarding your first question: Sounds like you forgot to link in
CoreAudio.framework in your build.
Regarding your second question: The document you were looking at is
old and has been supplanted by the new docs on our developer website.
Java hasn't been a supported language for a while now.
On Sep 28, 2008, at 8:20 AM, Russell Edwards wrote:
Hello All
Two questions if I may.
I'm just starting out using the core audio HAL, having done some
audio unit programming at Uni. I'm running through the Core Audio
introduction and I'm trying to implement the code to get a list of
devices.
I have implemented just one line of code and it throws an error at
runtime. The code I have so far is as follows: -
#include <stdio.h>
#include <CoreAudio/AudioHardware.h>
#include <CoreAudio/CoreAudioTypes.h>
int main (int argc, const char * argv[]) {
// insert code here...
UInt32 theSize;
OSStatus theStatus;
theStatus =
AudioHardwareGetPropertyInfo(kAudioHardwarePropertyDevices,
&theSize, NULL);
printf("Hello, World!\n");
return 0;
}
when Zero link is turned on in Xcode the run log returns the
following: -
[Session started at 2008-09-28 15:00:19 +0100.]
ZeroLink: unknown symbol '_AudioHardwareGetPropertyInfo'
CoreAudioTest has exited due to signal 6 (SIGABRT).
If I turn zero link off I get the following error at compile time:-
Tool:0: collect2: ld returned 1 exit status
Tool:0: /Users/russ/CoreAudioTest/build/CoreAudioTest.build/Debug/
CoreAudioTest.build/Objects-normal/ppc/main.o reference to undefined
_AudioHardwareGetPropertyInfo
Tool:0: _AudioHardwareGetPropertyInfo
Tool:0: Undefined symbols:
I'm guessing this is an error in compiling the
AudioHardwareGetPropertyInfo function. Having looked at previous
mailing list posts that include this I have found that there appears
to be problems with some audio cards. Just in case I am running an
Edirol FA101 which uses the BeBoB chip-set.
Can anyone please help, as this isn't a good intro.
Second I'm more at home with Java than C, having used it for several
years. The Intro to Core Audio says that it can be used from Java,
however, Xcode failed to include com.apple.audio.hardware in my test
project. Has core audio support now been removed by apple (there
isn't an API for it in the apple specific documentation either)? If
not where can the header be accessed? As for the purposes of finding
my feet Java might be better.
--
Jeff Moore
Core Audio
Apple
_______________________________________________
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