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


Java JackClient类代码示例

本文整理汇总了Java中org.herac.tuxguitar.jack.JackClient的典型用法代码示例。如果您正苦于以下问题:Java JackClient类的具体用法?Java JackClient怎么用?Java JackClient使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


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

示例1: JackSequencer

import org.herac.tuxguitar.jack.JackClient; //导入依赖的package包/类
public JackSequencer(TGContext context, JackClient jackClient){
	this.stopped = true;
	this.running = false;
	this.transportRunning = false;
	this.transportUID = -1;
	this.transportTryCount = 10;
	this.transportTryNumber = 0;
	this.jackClient = jackClient;
	this.jackLock = new Object();
	this.jackTickController = new JackTickController(this);
	this.jackEventController = new JackEventController(this);
	this.jackEventDispacher = new JackEventDispacher(this);
	this.jackTrackController = new JackTrackController(this);
	this.jackTimer = new JackTimer(this);
	this.jackMidiPlayerStarter = new JackMidiPlayerStarter(context, this);
}
 
开发者ID:theokyr,项目名称:TuxGuitar-1.3.1-fork,代码行数:17,代码来源:JackSequencer.java

示例2: setTransportFrame

import org.herac.tuxguitar.jack.JackClient; //导入依赖的package包/类
public void setTransportFrame( long frame ){
	JackClient jackClient = this.sequencer.getJackClient();
	jackClient.setTransportFrame( frame );
	try{
		Object transportFrameLock = new Object();
		
		int tryIndex = 0;
		int tryCount = TRANSPORT_FRAME_WAIT_COUNT;
		while(!jackClient.isTransportRunning() && jackClient.getTransportFrame() != frame && (tryIndex++ < tryCount)){
			synchronized (transportFrameLock) {
				transportFrameLock.wait(TRANSPORT_FRAME_WAIT_TIME);
			}
		}
	}catch (Throwable throwable) {
		throwable.printStackTrace();
	}
}
 
开发者ID:theokyr,项目名称:TuxGuitar-1.3.1-fork,代码行数:18,代码来源:JackTickController.java

示例3: listPorts

import org.herac.tuxguitar.jack.JackClient; //导入依赖的package包/类
public List<MidiOutputPort> listPorts() {
	if( this.jackOutputPorts == null ){
		this.jackOutputPorts = new ArrayList<MidiOutputPort>();
		
		JackClient jackClient = this.jackClientProvider.getJackClient();
		if( jackClient != null ){
			this.jackOutputPorts.add(new JackSynthesizerPort(this.context, jackClient));
		}
	}
	return this.jackOutputPorts;
}
 
开发者ID:theokyr,项目名称:TuxGuitar-1.3.1-fork,代码行数:12,代码来源:JackOutputPortProvider.java

示例4: listSequencers

import org.herac.tuxguitar.jack.JackClient; //导入依赖的package包/类
public List<MidiSequencer> listSequencers() throws MidiPlayerException {
	if( this.jackSequencers.isEmpty() ){
		JackClient jackClient = this.jackClientProvider.getJackClient();
		if( jackClient != null ){
			this.jackSequencers.add(new JackSequencer(this.context, jackClient));
		}
	}
	return this.jackSequencers;
}
 
开发者ID:theokyr,项目名称:TuxGuitar-1.3.1-fork,代码行数:10,代码来源:JackSequencerProvider.java

示例5: getJackClient

import org.herac.tuxguitar.jack.JackClient; //导入依赖的package包/类
public JackClient getJackClient() {
	JackSingletonPlugin plugin = findSingletonPlugin();
	if( plugin != null ){
		return plugin.getJackClient();
	}
	return null;
}
 
开发者ID:theokyr,项目名称:TuxGuitar-1.3.1-fork,代码行数:8,代码来源:JackClientInstanceProvider.java

示例6: connect

import org.herac.tuxguitar.jack.JackClient; //导入依赖的package包/类
public void connect(TGContext context) throws TGPluginException {
	try {
		if( this.jackClient == null ){
			this.jackClient = new JackClient();
		}
	} catch (Throwable throwable){
		throw new TGPluginException(throwable);
	}
}
 
开发者ID:theokyr,项目名称:TuxGuitar-1.3.1-fork,代码行数:10,代码来源:JackSingletonPlugin.java

示例7: JackSequencer

import org.herac.tuxguitar.jack.JackClient; //导入依赖的package包/类
public JackSequencer(JackClient jackClient){
	this.stopped = true;
	this.running = false;
	this.transportRunning = false;
	this.transportUID = -1;
	this.transportTryCount = 10;
	this.transportTryNumber = 0;
	this.jackClient = jackClient;
	this.jackTickController = new JackTickController(this);
	this.jackEventController = new JackEventController(this);
	this.jackEventDispacher = new JackEventDispacher(this);
	this.jackTrackController = new JackTrackController(this);
	this.jackTimer = new JackTimer(this);
}
 
开发者ID:Totallicks,项目名称:totallicks-tuxguitar,代码行数:15,代码来源:JackSequencer.java

示例8: JackSynthesizer

import org.herac.tuxguitar.jack.JackClient; //导入依赖的package包/类
public JackSynthesizer(TGContext context, JackClient jackClient){
	this.context = context;
	this.jackClient = jackClient;
	this.jackChannelProxies = new ArrayList<JackChannelProxy>();
}
 
开发者ID:theokyr,项目名称:TuxGuitar-1.3.1-fork,代码行数:6,代码来源:JackSynthesizer.java

示例9: JackGmPort

import org.herac.tuxguitar.jack.JackClient; //导入依赖的package包/类
public JackGmPort(JackClient jackClient, JackPort jackPort){
	this.jackPort = jackPort;
	this.jackReceiver = new JackGmReceiver(jackClient, jackPort);
}
 
开发者ID:theokyr,项目名称:TuxGuitar-1.3.1-fork,代码行数:5,代码来源:JackGmPort.java

示例10: JackChannel

import org.herac.tuxguitar.jack.JackClient; //导入依赖的package包/类
public JackChannel(JackClient jackClient, JackPort jackPort){
	this.jackClient = jackClient;
	this.jackPort = jackPort;
	this.channel1 = 0;
	this.channel2 = 0;
}
 
开发者ID:theokyr,项目名称:TuxGuitar-1.3.1-fork,代码行数:7,代码来源:JackChannel.java

示例11: JackGmReceiver

import org.herac.tuxguitar.jack.JackClient; //导入依赖的package包/类
public JackGmReceiver(JackClient jackClient, JackPort jackPort){
	this.jackClient = jackClient;
	this.jackPort = jackPort;
}
 
开发者ID:theokyr,项目名称:TuxGuitar-1.3.1-fork,代码行数:5,代码来源:JackGmReceiver.java

示例12: JackSynthesizerPort

import org.herac.tuxguitar.jack.JackClient; //导入依赖的package包/类
public JackSynthesizerPort(TGContext context, JackClient jackClient){
	this.jackClient = jackClient;
	this.jackSynthesizer = new JackSynthesizer(context, this.jackClient);
}
 
开发者ID:theokyr,项目名称:TuxGuitar-1.3.1-fork,代码行数:5,代码来源:JackSynthesizerPort.java

示例13: getJackClient

import org.herac.tuxguitar.jack.JackClient; //导入依赖的package包/类
public JackClient getJackClient(){
	return this.jackClient;
}
 
开发者ID:theokyr,项目名称:TuxGuitar-1.3.1-fork,代码行数:4,代码来源:JackSequencer.java

示例14: getJackClient

import org.herac.tuxguitar.jack.JackClient; //导入依赖的package包/类
public JackClient getJackClient() {
	return this.jackClient;
}
 
开发者ID:theokyr,项目名称:TuxGuitar-1.3.1-fork,代码行数:4,代码来源:JackSingletonPlugin.java

示例15: JackOutputPortProviderPlugin

import org.herac.tuxguitar.jack.JackClient; //导入依赖的package包/类
public JackOutputPortProviderPlugin(){
	this(new JackClient(),new JackSettings());
}
 
开发者ID:Totallicks,项目名称:totallicks-tuxguitar,代码行数:4,代码来源:JackOutputPortProviderPlugin.java


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