Package ca.phon.media
Class SampledPlaySegment
java.lang.Object
ca.phon.media.PlaySegment
ca.phon.media.SampledPlaySegment
-
Constructor Summary
ConstructorDescriptionSampledPlaySegment
(Sampled sampled) SampledPlaySegment
(Sampled sampled, VolumeModel volumeModel) -
Method Summary
Modifier and TypeMethodDescriptiongetAudioFormat
(float playbackRate) void
playSegment
(float startTime, float endTime, float playbackRate) Play segmentvoid
stop()
Stop playing segment.Methods inherited from class ca.phon.media.PlaySegment
addPropertyChangeListener, addPropertyChangeListener, getPosition, getPropertyChangeListeners, getPropertyChangeListeners, isLoop, isPlaying, removePropertyChangeListener, removePropertyChangeListener, setLoop, setPlaying, setPosition
-
Constructor Details
-
SampledPlaySegment
-
SampledPlaySegment
-
-
Method Details
-
getSampled
-
getAudioFormat
-
getAudioFormat
-
stop
public void stop()Description copied from class:PlaySegment
Stop playing segment.- Specified by:
stop
in classPlaySegment
-
playSegment
Description copied from class:PlaySegment
Play segment- Specified by:
playSegment
in classPlaySegment
- Throws:
IOException
- on error
-