Re: Cannot open two differernt audio lines simultaneously
Re: Cannot open two differernt audio lines simultaneously
- Subject: Re: Cannot open two differernt audio lines simultaneously
- From: Bob Lang <email@hidden>
- Date: Sun, 27 Apr 2008 22:16:26 +0100
Hi Stefan
Since this doesn't really concern Core Audio, let's discuss this
privately and away from the list.
Bob
--
On 27 Apr 2008, at 19:43, Stefan Pachner wrote:
Hi Bob,
Thank for your anwser. Well, I tried this on a brand new 20" alu
imac and a minimac (about two years old) both with the same
results. Sometimes I even got a crash of my jre which I did not
mention in my opening thread because I cannot reproduce it anymore.
Now I get always the mentioned exception. The audio inputs I have
tried are the system line-in and a litte USB stick which registers
as "C -Media USB headphone set".
I simple cannot believe that there is hardware limitation causing
the problem. Are the Apple's Mac not known for their Audio/Video
capabilities and now it should be a problem to open two audio line
at the same time??
Has anybody else already tired this. Since same code runs perfectly
on XP/Linux the code seems to be clean.
regards
Stedan
Am 25.04.2008 um 16:52 schrieb Bob Lang:
Hi Stefan
Java Sound leverages the underlying audio facilities and so
absolute cross platform portability cannot be guaranteed. Just
because a Java Sound program works on Linux doesn't guarantee that
it will work on any other platform and newby Java Sound
programmers are often caught out by hardware and software
incompatibilities.
I think you've bumped into a hardware limitation of your
particular computer, but you haven't mentioned which particular
Apple computer you're trying to use, nor which input devices
you're opening so it's hard to say for certain.
I'll also mention that there's a specific emailing list for Java
Sound developers. It's email@hidden
Bob
--
On 25 Apr 2008, at 13:43, email@hidden wrote:
Dear all,
I am trying to open two differernt audio lines simultaneously.
Unfortunately the runtime throws this exception:
javax.sound.sampled.LineUnavailableException: Another capture
device is already open
at com.sun.media.sound.SimpleInputDevice.nOpen(Native Method)
at com.sun.media.sound.SimpleInputDevice.implOpen
(SimpleInputDevice.java:275)
at com.sun.media.sound.AbstractMixer.open(AbstractMixer.java:286)
at com.sun.media.sound.AbstractMixer.open(AbstractMixer.java:334)
at com.sun.media.sound.AbstractDataLine.open
(AbstractDataLine.java:103)
at com.sun.media.sound.SimpleInputDevice
$InputDeviceDataLine.open(SimpleInputDevice.java:632)
at com.sun.media.sound.AbstractDataLine.open
(AbstractDataLine.java:139)
at com.fasttvr.audio.CaptureTool$CaptureThread.run
(CaptureTool.java:240)
Both audio lines I have tried can be opened successfully when the
other one has been closed before. It is even possible to open a
single line more that one time. But it is not possible to open
the two lines simultaneously. Why not? Same code is running under
XP/Linux without any problem!
I have been trying the OS X 10.5 default (build 1.5.0_13-b05-237)
and the 1.6 developer preview (build 1.6.0_04-b12-45-optimized)
both are faulty.
I highly appreciate any comment on this.
regards
spachner
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40blueyonder.co.uk
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