Package ca.phon.app.session.editor
Class SessionMediaModel
java.lang.Object
ca.phon.app.session.editor.SessionMediaModel
Media model for a session editor.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final boolean
static final float
static final float
static final float
static final String
static 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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
addPropertyChangeListener
(String propertyName, PropertyChangeListener listener) boolean
Check 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.float
getPropertyChangeListeners
(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.boolean
hasListeners
(String propertyName) boolean
Is there an audio file (wav) available for the session?boolean
Is session media available?Load session audio file as aLongSound
objectvoid
void
removePropertyChangeListener
(String propertyName, PropertyChangeListener listener) void
void
setPlaybackRate
(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
Return the media location for the session.- Returns:
-
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:
true
if 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
Return a list of valid audio file extensions (excluding the '.')- Returns:
- list of valid audio file extensions
-
loadSessionAudio
Load session audio file as aLongSound
object- 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
-