Package com.avpkit.mediatool.demos
Interface Balls
-
- All Known Implementing Classes:
MovingBalls
public interface Balls
An API for getting images and sounds representingBallsthat are to be encoded into a video.- Author:
- trebor
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description short[]getAudioFrame(int sampleRate)Get the next set of audio for the balls.java.awt.image.BufferedImagegetVideoFrame(long elapsedTime)Get a picture of a set of balls.
-
-
-
Method Detail
-
getVideoFrame
java.awt.image.BufferedImage getVideoFrame(long elapsedTime)
Get a picture of a set of balls. Each new call should provide the right picture assuming elapsedTime, in MICROSECONDS, has passed.- Parameters:
elapsedTime- the time in MICROSECONDS which has elapsed since the last video frame
-
getAudioFrame
short[] getAudioFrame(int sampleRate)
Get the next set of audio for the balls. Samples returned should assume they are contiguous to the last samples returned.- Parameters:
sampleRate- the number of samples in a second
-
-