Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: JMF CrossPlattform - JavaSound problem



Sandor Sz?cs wrote:

>Calculation: 22050 / (1*1/2) = 44100
>1 := mono
>1/2 := 4 Bit
>I think I missunderstood something or?

I was referring to the AudioFormat you specified for your mic input.  I'm
not aware of any JavaSound Mixers or lines that directly input in 4-bit
format.  Your encoded VOIP format may well be 4-bit, but a codec would have
to be translating a raw format like 8-bit or 16-bit into the 4-bit format.

If you look at the exception stack-trace, this is the top element:

   at com.sun.media.sound.SimpleInputDevice$InputDeviceDataLine.read

That's in the read() method of a SimpleInputDevice's nested class. My guess
is the SimpleInputDevice represents the mic device's parent mixer, and the
InputDeviceDataLine is a TargetDataLine because it provides a read()
method.  I come to that from seeing exactly that class listed as the Mixer
class for both built-in line/mic input and USB headset input on Mac OS X.
See this recent list thread, "Problems Using JavaSound":
  <http://lists.apple.com/archives/java-dev/2006/Mar/msg00070.html>

However, since you said you also get the error for other formats, maybe
it's just a misleading clue.


If you're interested in using a Java VOIP library, as distinct from writing
it yourself, try googling for:
  java voip open source

The OpenZoep project appears to do what you want, and unlike JMF, is in
active development.

  -- GG


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/email@hidden

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.