~ubuntu-branches/ubuntu/oneiric/tuxguitar/oneiric

« back to all changes in this revision

Viewing changes to src/org/herac/tuxguitar/player/base/MidiPlayer.java

  • Committer: Bazaar Package Importer
  • Author(s): Philippe Coval
  • Date: 2008-06-19 00:30:30 UTC
  • mto: (5.1.2 sid)
  • mto: This revision was merged to the branch mainline in revision 3.
  • Revision ID: james.westby@ubuntu.com-20080619003030-h719szrhsngou7c6
Tags: upstream-1.0
ImportĀ upstreamĀ versionĀ 1.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
 * Created on 23-nov-2005
3
 
 *
4
 
 * TODO To change the template for this generated file go to
5
 
 * Window - Preferences - Java - Code Style - Code Templates
6
 
 */
7
 
package org.herac.tuxguitar.player.base;
8
 
 
9
 
import java.io.File;
10
 
import java.io.OutputStream;
11
 
import java.util.List;
12
 
 
13
 
import javax.sound.midi.Soundbank;
14
 
import javax.sound.midi.Synthesizer;
15
 
 
16
 
import org.eclipse.swt.widgets.Composite;
17
 
import org.eclipse.swt.widgets.ToolBar;
18
 
import org.herac.tuxguitar.gui.system.config.ConfigEditor;
19
 
import org.herac.tuxguitar.gui.system.config.items.Option;
20
 
import org.herac.tuxguitar.song.models.SongTrack;
21
 
 
22
 
/**
23
 
 * @author julian
24
 
 *
25
 
 * TODO To change the template for this generated type comment go to
26
 
 * Window - Preferences - Java - Code Style - Code Templates
27
 
 */
28
 
public interface MidiPlayer {
29
 
    public void init();
30
 
    public void close();
31
 
    public void play();
32
 
    public void pause();
33
 
    public void stop();    
34
 
    public void reset();
35
 
    public boolean isPaused();
36
 
    public boolean isRunning();
37
 
    public void setSynthesizer(Synthesizer synthesizer);
38
 
    public boolean isMetronomeEnabled();
39
 
        public void setMetronomeEnabled(boolean metronomeEnabled);
40
 
    public void playBeat(final SongTrack track,final List notes);
41
 
    public void updatePrograms();
42
 
    public void updateControllers();
43
 
    public void setTickPosition(long position,long startMove);
44
 
    public long getTickPosition();
45
 
    public Soundbank getSoundbank();
46
 
    public String getInstrumentName(int instrument);
47
 
    public boolean loadSoundbank(File file);
48
 
    public void write(OutputStream out);    
49
 
    public List getSystemErrors();
50
 
    public Option getConfigOption(ConfigEditor editor,ToolBar toolBar,Composite parent);
51
 
}