Package io.guise.framework.audio
Interface Audio.Depictor<A extends Audio>
-
- Type Parameters:
A
- The type of audio to be depicted.
- All Superinterfaces:
Depictor<A>
- All Known Implementing Classes:
WebAudioDepictor
- Enclosing class:
- Audio
public static interface Audio.Depictor<A extends Audio> extends Depictor<A>
The custom depictor type for audio.- Author:
- Garret Wilson
-
-
Field Summary
-
Fields inherited from interface io.guise.framework.platform.Depictor
GENERAL_PROPERTY
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
pause()
Requests that the audio pause.void
play()
Requests that the audio start playing.void
setTimePosition(long newTimePosition)
Requests a new time-based play position.void
stop()
Requests that the audio stop.-
Methods inherited from interface io.guise.framework.platform.Depictor
depict, getDepictContext, getDepictedObject, getPlatform, getSession, installed, isDepicted, processEvent, setDepicted, uninstalled
-
-
-
-
Method Detail
-
play
void play()
Requests that the audio start playing.
-
pause
void pause()
Requests that the audio pause.
-
stop
void stop()
Requests that the audio stop.
-
setTimePosition
void setTimePosition(long newTimePosition)
Requests a new time-based play position.- Parameters:
newTimePosition
- The new play position in microseconds.- Throws:
java.lang.IllegalArgumentException
- if the given position is negative.
-
-