本文整理匯總了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);
}
示例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();
}
}
示例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;
}
示例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;
}
示例5: getJackClient
import org.herac.tuxguitar.jack.JackClient; //導入依賴的package包/類
public JackClient getJackClient() {
JackSingletonPlugin plugin = findSingletonPlugin();
if( plugin != null ){
return plugin.getJackClient();
}
return null;
}
示例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);
}
}
示例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);
}
示例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>();
}
示例9: JackGmPort
import org.herac.tuxguitar.jack.JackClient; //導入依賴的package包/類
public JackGmPort(JackClient jackClient, JackPort jackPort){
this.jackPort = jackPort;
this.jackReceiver = new JackGmReceiver(jackClient, jackPort);
}
示例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;
}
示例11: JackGmReceiver
import org.herac.tuxguitar.jack.JackClient; //導入依賴的package包/類
public JackGmReceiver(JackClient jackClient, JackPort jackPort){
this.jackClient = jackClient;
this.jackPort = jackPort;
}
示例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);
}
示例13: getJackClient
import org.herac.tuxguitar.jack.JackClient; //導入依賴的package包/類
public JackClient getJackClient(){
return this.jackClient;
}
示例14: getJackClient
import org.herac.tuxguitar.jack.JackClient; //導入依賴的package包/類
public JackClient getJackClient() {
return this.jackClient;
}
示例15: JackOutputPortProviderPlugin
import org.herac.tuxguitar.jack.JackClient; //導入依賴的package包/類
public JackOutputPortProviderPlugin(){
this(new JackClient(),new JackSettings());
}