public class SampleGrabberCallback extends com.teamdev.jxdesktop.win32.com.server.IUnknownServer implements ISampleGrabberCB
INTERFACE_IDENTIFIER
Constructor and Description |
---|
SampleGrabberCallback(com.teamdev.jxdesktop.win32.com.CoClassMetaInfo coClassMetaInfo) |
Modifier and Type | Method and Description |
---|---|
void |
addSampleGrabberListener(SampleGrabberListener listener) |
void |
bufferCB(com.jniwrapper.DoubleFloat sampleTime,
com.jniwrapper.Pointer.Void buffer,
com.jniwrapper.LongInt bufferLen) |
static SampleGrabberCallback |
create()
Factory method that creates sample grabber callback.
|
ISampleGrabberCB |
getCallback() |
byte[] |
grab()
This method returns the data in raw format, depending on a format of a source file.
|
void |
removeSampleGrabberListener(SampleGrabberListener listener) |
void |
sampleCB(com.jniwrapper.DoubleFloat sampleTime,
com.teamdev.jxdesktop.win32.com.IUnknown sample) |
addRef, addRefAggregated, create, destroy, doDestroy, doQueryInterface, getClassImpl, getRefCount, isAutoDelete, isNull, queryInterface, queryInterfaceAggregated, release, releaseAggregated, setAutoDelete, setNull
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public SampleGrabberCallback(com.teamdev.jxdesktop.win32.com.CoClassMetaInfo coClassMetaInfo)
public void sampleCB(com.jniwrapper.DoubleFloat sampleTime, com.teamdev.jxdesktop.win32.com.IUnknown sample) throws com.teamdev.jxdesktop.win32.com.ComException
sampleCB
in interface ISampleGrabberCB
com.teamdev.jxdesktop.win32.com.ComException
public void bufferCB(com.jniwrapper.DoubleFloat sampleTime, com.jniwrapper.Pointer.Void buffer, com.jniwrapper.LongInt bufferLen) throws com.teamdev.jxdesktop.win32.com.ComException
bufferCB
in interface ISampleGrabberCB
com.teamdev.jxdesktop.win32.com.ComException
public void addSampleGrabberListener(SampleGrabberListener listener)
public void removeSampleGrabberListener(SampleGrabberListener listener)
public byte[] grab() throws java.util.concurrent.TimeoutException, java.lang.InterruptedException
java.util.concurrent.TimeoutException
- if timeout occurs during pefroming grab operationjava.lang.InterruptedException
- if it got interrupted in wait phasepublic ISampleGrabberCB getCallback()
public static SampleGrabberCallback create()