当前位置: 首页>>代码示例>>Java>>正文


Java Processor.Configured方法代码示例

本文整理汇总了Java中javax.media.Processor.Configured方法的典型用法代码示例。如果您正苦于以下问题:Java Processor.Configured方法的具体用法?Java Processor.Configured怎么用?Java Processor.Configured使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在javax.media.Processor的用法示例。


在下文中一共展示了Processor.Configured方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: waitForState

import javax.media.Processor; //导入方法依赖的package包/类
/****************************************************************
    * Boring methods of SuperGlueDataSource
    ****************************************************************/
   

   private synchronized boolean waitForState(Processor p, int state) {
StateListener sl = new StateListener();
p.addControllerListener(sl);
failed = false;

if (state == Processor.Configured) {
    p.configure();
} else if (state == Processor.Realized) {
    p.realize();
}

while (p.getState() < state && !failed) {
    synchronized (getStateLock()) {
	try {
	    getStateLock().wait();
	} catch (InterruptedException ie) {
	    return false;
	}
    }
}	
p.removeControllerListener(sl);
return !failed;
   }
 
开发者ID:champtar,项目名称:fmj-sourceforge-mirror,代码行数:29,代码来源:SuperGlueDataSource.java

示例2: waitForState

import javax.media.Processor; //导入方法依赖的package包/类
private synchronized boolean waitForState(Processor p, int state) {
StateListener sl = new StateListener();
p.addControllerListener(sl);
failed = false;

if (state == Processor.Configured) {
    p.configure();
} else if (state == Processor.Realized) {
    p.realize();
}

while (p.getState() < state && !failed) {
    synchronized (getStateLock()) {
	try {
	    getStateLock().wait();
	} catch (InterruptedException ie) {
	    return false;
	}
    }
}	
p.removeControllerListener(sl);
return !failed;
   }
 
开发者ID:champtar,项目名称:fmj-sourceforge-mirror,代码行数:24,代码来源:MiniME.java

示例3: waitForState

import javax.media.Processor; //导入方法依赖的package包/类
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;
	}
    }
}

if (failed)
    return false;
else
    return true;
   }
 
开发者ID:champtar,项目名称:fmj-sourceforge-mirror,代码行数:30,代码来源:AVTransmitter.java

示例4: waitForState

import javax.media.Processor; //导入方法依赖的package包/类
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;
}
 
开发者ID:TTalkIM,项目名称:Smack,代码行数:29,代码来源:AudioChannel.java

示例5: waitForState

import javax.media.Processor; //导入方法依赖的package包/类
protected 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;
			}
		}
	}

	if (failed)
		return false;
	else
		return true;
}
 
开发者ID:mloobo,项目名称:Dolphin-Streaming-Server,代码行数:30,代码来源:UnicastRtp.java

示例6: waitForState

import javax.media.Processor; //导入方法依赖的package包/类
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;
            }
        }
    }

    if (failed)
        return false;
    else
        return true;
}
 
开发者ID:visit,项目名称:spark-svn-mirror,代码行数:30,代码来源:VideoChannel.java


注:本文中的javax.media.Processor.Configured方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。