GO DIRECTLY TO
My Oracle Support Community
Oracle Technology Network
Java Media Framework
Please enter a title.
You can not post a blank message. Please type your message and try again.
This discussion is archived
: May 16, 2013 10:33 PM by 908881
Problem in jmf voice capture
May 16, 2013 10:33 PM
Currently Being Moderated
I have made my custom DataSource, custom DirectSoundStream, custom DSoundST class for voice capture.
Sample Rate: 8000
Sample Size: 16
capture buff size:
Read method in custom DSoundST class which calls native read method of DSound class (in package com.sun.media.protocol)
has variable delay in reading capture voice from microphone.
The following code sample in DSoundST class gives variable delay(of 60,42,0,145,211 ms) in read method
long t = System.currentTimeMillis();
this.result = super.read(this.data, this.offset, this.len);
System.err.println("# DSoundSTRead "+this.len+" "+this.result+" "+(System.currentTimeMillis()-t));
Why there is variable delay in the above read() method. How to remove this delay, how to have constant delay ?
Track in Communications
- 10 points
- 5 points