本文整理汇总了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());
}