Skip to main content

JMF microphone problem on MacOS X

No replies
lgi
Offline
Joined: 2012-07-27
Points: 0

Hi all,

when I try to transmit audio from microphone through RTP protocol in JMF, application throws exception:
Exception in thread "JavaSound PushThread" java.lang.IllegalArgumentException: Illegal request to write non-integral number of frames (22050 bytes )
at com.sun.media.sound.SimpleInputDevice$InputDeviceDataLine.read(SimpleInputDevice.java:514)
at com.sun.media.protocol.javasound.PushThread.process(JavaSoundSourceStream.java:790)
at com.sun.media.util.LoopThread.run(LoopThread.java:135)

Only on Mac. On Windows everything works. Does anybody know how to solve it?