Re: Using AudioDeviceIOProc for Java
Re: Using AudioDeviceIOProc for Java
- Subject: Re: Using AudioDeviceIOProc for Java
- From: William Stewart <email@hidden>
- Date: Thu, 10 Aug 2006 12:03:49 -0700
The CA Java API is a deprecated and unsupported API
I would recommend either:
(1) If you are using Java there are a number of very good solutions
available for doing audio with java and I think many/most of these
are supported on Mac OS X (as well as Windows/Linux), etc.
(2) If you specifically (and we hope you do!) want to deal with
CoreAudio APIs directly then those APIs are primarily published as C
API. These can be directly accessed through C/C++ code of course, as
well as Objective C. There are also some Obj C class libraries that
people have written and provided for others usage if you would prefer
to deal directly with ObjC classes.
HTH
Bill
On 10/08/2006, at 2:59 AM, Angelista Loke wrote:
Hi there,
I'm a newbie to CoreAudio and have been trying to get some stuff
running for it. Namely, I'm trying to read data from the Output
line. Any suggestions on how to go about doing it?
Also, I've been trying out this bunch of code:
AudioDevice ad = AudioHardware.getDefaultOutputDevice();
AudioProc proc = new AudioProc();
ad.addIOProc(proc);
ad.start(proc);
Thread.sleep(10000);
ad.stop(proc);
ad.dispose();
AudioDevice.disposeAll();
AudioProc is just a skeleton class implementing execute.
However, I keep getting a bus error or an invalid memory access
error. Is there anything I'm doing wrong? Something I forgot to
set? Please shed some light on the issue.
Thanks
Rgds
Angelista
_______________________________________________
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
--
mailto:email@hidden
tel: +1 408 974 4056
________________________________________________________________________
__
"Much human ingenuity has gone into finding the ultimate Before.
The current state of knowledge can be summarized thus:
In the beginning, there was nothing, which exploded" - Terry Pratchett
________________________________________________________________________
__
_______________________________________________
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