Re: Using AudioDeviceIOProc for Java
Re: Using AudioDeviceIOProc for Java
- Subject: Re: Using AudioDeviceIOProc for Java
- From: Loke Hui Yi <email@hidden>
- Date: Fri, 11 Aug 2006 16:41:09 +0800
Hi,
Thanks for responding so quickly. I need to tap into the Mac's sound
output using Java, have been looking at the Quicktime APIs but there
doesn't seem to be any way for me to grab the Input stream. Can you
advise on any way I can go about it? Either using CA or anything else?
(Or whether it's possible or not :p)
Thanks again for the help!
Rgds
Angelista
William Stewart wrote:
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