當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。