• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
AudioHardwareGetPropertyInfo and Core Audio Java
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

AudioHardwareGetPropertyInfo and Core Audio Java


  • Subject: AudioHardwareGetPropertyInfo and Core Audio Java
  • From: Russell Edwards <email@hidden>
  • Date: Sun, 28 Sep 2008 16:20:22 +0100

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.

Many Thanks

Russell

_______________________________________________
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


  • Follow-Ups:
    • Re: AudioHardwareGetPropertyInfo and Core Audio Java
      • From: Jeff Moore <email@hidden>
  • Prev by Date: Re: iPhone Remote IO Audio Unit
  • Next by Date: AudioQueueStop, AudioFileStreamParseBytes, kAudioQueueProperty_IsRunning
  • Previous by thread: Re: iPhone Remote IO Audio Unit
  • Next by thread: Re: AudioHardwareGetPropertyInfo and Core Audio Java
  • Index(es):
    • Date
    • Thread