[sip-comm] non-integral number of frames


#1

Hi!

Why am I getting the exception
java.lang.IllegalArgumentException: Illegal request to write non-integral
number of frames (22050 bytes )
at com.sun.media.sound.SimpleInputDevice.read(SimpleInputDevice.java:524)
at
com.sun.media.protocol.javasound.PushThread.process(JavaSoundSourceStream.ja
va:790)
at com.sun.media.util.LoopThread.run(LoopThread.java:135)

when starting sip-communicator?

This is on a redhat 9 machine, kernel 2.6.1, JMF 2.1.1e, JDK 1.4.2.

The exception only occurs when not using a file as media source. After a
look around it seems that this is a Java/jmf bug connected with the
capturing of audio, but I have been unable to find a solution. Does anyone
else have this problem? Solutions?

Regards

Mikael Formanek

···

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: users-help@sip-communicator.dev.java.net


#2

Hello Mikael,

Make sure ur devices are properly detected by JMF. U can do that from sip-communicator itslef by clicking on the
Settings->Media Preferences
menu

Let me know if this doesn't help
Cheers
Emil

Mikael Formanek wrote:

···

Hi!

Why am I getting the exception
java.lang.IllegalArgumentException: Illegal request to write non-integral
number of frames (22050 bytes )
at com.sun.media.sound.SimpleInputDevice.read(SimpleInputDevice.java:524)
at
com.sun.media.protocol.javasound.PushThread.process(JavaSoundSourceStream.ja
va:790)
at com.sun.media.util.LoopThread.run(LoopThread.java:135)

when starting sip-communicator?

This is on a redhat 9 machine, kernel 2.6.1, JMF 2.1.1e, JDK 1.4.2.

The exception only occurs when not using a file as media source. After a
look around it seems that this is a Java/jmf bug connected with the
capturing of audio, but I have been unable to find a solution. Does anyone
else have this problem? Solutions?

Regards

Mikael Formanek

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: users-help@sip-communicator.dev.java.net

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: users-help@sip-communicator.dev.java.net


#3

Hi Emil!

The only device detected by JMF is JavaSound audio capture and as far as I
can understand, this is as it should be.
There are 2 machines, a redhat 9 machine as descibed in the previous mail,
and a win2003 machine, jdk 1.5.0 and jmf2.1.1e.

What happens is that this exception gets printed right before the login
screen appears (where I leave everything blank). Calls can be made and
received, but there is no sound at either end. On the linux end, I then get
a "failed to prefetch" error when the connection is being set up.
But if I specify a video file, neither error/exception occurs and sound and
video plays fine on both ends (no matter whether a video file is used on the
win machine or just mic capture is used).
This pretty much leads me to believe that it is the audio capture that is
screwing things up. Quite possibly it is a configuration problem of JMF, but
I really don't know what or how to solve it.

Any ideas are gratefully accepted!

I've attached the trace, the logs and the property file of the linux
machine.

Regards
/Mikael

sip-communicator.stack.log (8.9 KB)

sip-communicator.app.log (20.6 KB)

sip-communicator.properties (3.9 KB)

trace.txt (1.27 KB)

···

-----Original Message-----

From: Emil Ivov [mailto:emil_ivov@yahoo.com]

Sent: maj 11, 2004 01:26
To: users@sip-communicator.dev.java.net
Subject: Re: [sip-comm] non-integral number of frames

Hello Mikael,

Make sure ur devices are properly detected by JMF. U can do that from
sip-communicator itslef by clicking on the
Settings->Media Preferences
menu

Let me know if this doesn't help
Cheers
Emil

Mikael Formanek wrote:

Hi!

Why am I getting the exception
java.lang.IllegalArgumentException: Illegal request to write non-integral
number of frames (22050 bytes )
at com.sun.media.sound.SimpleInputDevice.read(SimpleInputDevice.java:524)
at

com.sun.media.protocol.javasound.PushThread.process(JavaSoundSourceStream.ja

va:790)
at com.sun.media.util.LoopThread.run(LoopThread.java:135)

when starting sip-communicator?

This is on a redhat 9 machine, kernel 2.6.1, JMF 2.1.1e, JDK 1.4.2.

The exception only occurs when not using a file as media source. After a
look around it seems that this is a Java/jmf bug connected with the
capturing of audio, but I have been unable to find a solution. Does anyone
else have this problem? Solutions?

Regards

Mikael Formanek

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: users-help@sip-communicator.dev.java.net

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: users-help@sip-communicator.dev.java.net