Tabnine Logo
Processor.getState
Code IndexAdd Tabnine to your IDE (free)

How to use
getState
method
in
javax.media.Processor

Best Java code snippets using javax.media.Processor.getState (Showing top 11 results out of 315)

origin: igniterealtime/Smack

private synchronized boolean waitForState(Processor p, int state) {
  p.addControllerListener(new StateListener());
  failed = false;
  // Call the required method on the processor
  if (state == Processor.Configured) {
    p.configure();
  }
  else if (state == Processor.Realized) {
    p.realize();
  }
  // Wait until we get an event that confirms the
  // success of the method, or a failure event.
  // See StateListener inner class
  while (p.getState() < state && !failed) {
    synchronized (getStateLock()) {
      try {
        getStateLock().wait();
      }
      catch (InterruptedException ie) {
        return false;
      }
    }
  }
  return !failed;
}
origin: jitsi/libjitsi

if ((processor != null) && (processor.getState() >= Processor.Realized))
origin: jitsi/libjitsi

/**
 * Starts a specific <tt>Processor</tt> if this <tt>MediaDeviceSession</tt>
 * has been started and the specified <tt>Processor</tt> is not started.
 *
 * @param processor the <tt>Processor</tt> to start
 */
protected void startProcessorInAccordWithDirection(Processor processor)
{
  if (startedDirection.allowsSending()
      && (processor.getState() != Processor.Started))
  {
    processor.start();
    if (logger.isTraceEnabled())
    {
      logger.trace(
          "Started Processor with hashCode "
            + processor.hashCode());
    }
  }
}
origin: jitsi/libjitsi

while ((processor.getState() < state) && !failed)
origin: org.igniterealtime.smack/smack-jingle

private synchronized boolean waitForState(Processor p, int state) {
  p.addControllerListener(new StateListener());
  failed = false;
  // Call the required method on the processor
  if (state == Processor.Configured) {
    p.configure();
  }
  else if (state == Processor.Realized) {
    p.realize();
  }
  // Wait until we get an event that confirms the
  // success of the method, or a failure event.
  // See StateListener inner class
  while (p.getState() < state && !failed) {
    synchronized (getStateLock()) {
      try {
        getStateLock().wait();
      }
      catch (InterruptedException ie) {
        return false;
      }
    }
  }
  return !failed;
}
origin: org.igniterealtime.smack/smackx-jingle

private synchronized boolean waitForState(Processor p, int state) {
  p.addControllerListener(new StateListener());
  failed = false;
  // Call the required method on the processor
  if (state == Processor.Configured) {
    p.configure();
  }
  else if (state == Processor.Realized) {
    p.realize();
  }
  // Wait until we get an event that confirms the
  // success of the method, or a failure event.
  // See StateListener inner class
  while (p.getState() < state && !failed) {
    synchronized (getStateLock()) {
      try {
        getStateLock().wait();
      }
      catch (InterruptedException ie) {
        return false;
      }
    }
  }
  return !failed;
}
origin: jitsi/libjitsi

&& (processor.getState() > Processor.Configured))
origin: jitsi/libjitsi

int processorState = processor.getState();
origin: jitsi/libjitsi

  || ((processor.getState() < Processor.Realized)
      && !waitForState(processor, Processor.Realized)))
outputDataSource = null;
origin: jitsi/libjitsi

        + processor.hashCode());
if (processor.getState() == Processor.Realized)
origin: jitsi/libjitsi

        + supportedFormat
        + ". Processor is in state "
        + processor.getState());
else if (setFormat != supportedFormat)
  logger.warn(
        + supportedFormat
        + ". Processor is in state "
        + processor.getState());
else if (logger.isTraceEnabled())
  logger.trace(
javax.mediaProcessorgetState

Popular methods of Processor

  • getDataOutput
  • addControllerListener
  • close
  • configure
  • getTrackControls
  • realize
  • setContentDescriptor
  • start
  • stop
  • getControl
  • deallocate
  • removeControllerListener
  • deallocate,
  • removeControllerListener

Popular in Java

  • Reactive rest calls using spring rest template
  • getContentResolver (Context)
  • getExternalFilesDir (Context)
  • getResourceAsStream (ClassLoader)
  • PrintWriter (java.io)
    Wraps either an existing OutputStream or an existing Writerand provides convenience methods for prin
  • BitSet (java.util)
    The BitSet class implements abit array [http://en.wikipedia.org/wiki/Bit_array]. Each element is eit
  • Modifier (javassist)
    The Modifier class provides static methods and constants to decode class and member access modifiers
  • JTable (javax.swing)
  • Loader (org.hibernate.loader)
    Abstract superclass of object loading (and querying) strategies. This class implements useful common
  • Option (scala)
  • Top 12 Jupyter Notebook extensions
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now