dguitar.players.sound
Interface SoundPlayer

All Known Subinterfaces:
EventSoundPlayer, RealtimeSoundPlayer
All Known Implementing Classes:
MasterPlayer, MidiFiler, MidiPlayer, MockMidiPlayer

public interface SoundPlayer

Author:
crnash

Method Summary
 void close()
           
 Performance createPerformance(int tracks, Tempo tempo, int resolution)
          Create a performance object that is compatible with this class of SoundPlayer.
 void setPerformance(Performance performance)
           
 void start()
           
 

Method Detail

createPerformance

public Performance createPerformance(int tracks,
                                     Tempo tempo,
                                     int resolution)
Create a performance object that is compatible with this class of SoundPlayer.

Parameters:
tracks - the number of physical tracks in this performance
tempo - the tempo at which to play it
resolution - the resolution (in ticks per quarter note)
Returns:
the Performance object that was created

start

public void start()

close

public void close()

setPerformance

public void setPerformance(Performance performance)
Parameters:
performance -