Class SessionMediaModel
java.lang.Object
ca.phon.app.session.editor.SessionMediaModel
Media model for a session editor.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final booleanstatic final floatstatic final floatstatic final floatstatic final Stringstatic final EditorEventType<SessionMediaModel> Editor action key generated when session audio file becomes available The session audio file should be provided as event data -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidaddPropertyChangeListener(String propertyName, PropertyChangeListener listener) booleanCheck audio file (if exists) to see if we can load it using the java sound system.Return a list of valid audio file extensions (excluding the '.')Return this shared action for generating session audio.floatgetPropertyChangeListeners(String propertyName) Return the audio (wav) file for the session.Return the media location for the session.Return (and load if necessary) the shared session audio file instance.booleanhasListeners(String propertyName) booleanIs there an audio file (wav) available for the session?booleanIs session media available?Load session audio file as aLongSoundobjectvoidvoidremovePropertyChangeListener(String propertyName, PropertyChangeListener listener) voidvoidsetPlaybackRate(float playbackRate)
-
Field Details
-
MIN_PLAYBACK_RATE
public static final float MIN_PLAYBACK_RATE- See Also:
-
MAX_PLAYBACK_RATE
public static final float MAX_PLAYBACK_RATE- See Also:
-
DEFAULT_PLAYBACK_RATE
public static final float DEFAULT_PLAYBACK_RATE- See Also:
-
PERFORM_MEDIA_CHECK_PROP
-
DEFAULT_PERFORM_MEDIA_CHECK
public static final boolean DEFAULT_PERFORM_MEDIA_CHECK- See Also:
-
SessionAudioAvailable
Editor action key generated when session audio file becomes available The session audio file should be provided as event data
-
-
Constructor Details
-
SessionMediaModel
-
-
Method Details
-
getProject
-
getEditor
-
getSession
-
getVolumeModel
-
getPlaybackRate
public float getPlaybackRate() -
setPlaybackRate
public void setPlaybackRate(float playbackRate) -
getSegmentPlayback
-
isSessionMediaAvailable
public boolean isSessionMediaAvailable()Is session media available? -
getSessionMediaFile
-
resetAudioCheck
public void resetAudioCheck() -
checkAudioFile
public boolean checkAudioFile()Check audio file (if exists) to see if we can load it using the java sound system.- Returns:
-
isSessionAudioAvailable
public boolean isSessionAudioAvailable()Is there an audio file (wav) available for the session?- Returns:
trueif session media field has been set and a wav file is present for the media
-
getSessionAudioFile
Return the audio (wav) file for the session. This may be the same as the session media file.- Returns:
- session audio (wav) file
-
getAudioFileExtensions
-
loadSessionAudio
Load session audio file as aLongSoundobject- Returns:
- Throws:
IOException
-
getGenerateSessionAudioAction
Return this shared action for generating session audio. Shared access is necessary as multiple views will use this same action and will want to watch for progress simultaneously.- Returns:
- shared generate session audio action
-
addPropertyChangeListener
-
removePropertyChangeListener
-
getPropertyChangeListeners
-
addPropertyChangeListener
-
removePropertyChangeListener
-
getPropertyChangeListeners
-
hasListeners
-