com.xuggle.mediatool.demos
Interface Balls

Package class diagram package Balls
All Known Implementing Classes:
MovingBalls

public interface Balls

An API for getting images and sounds representing Balls that are to be encoded into a video.


Method Summary
 short[] getAudioFrame(int sampleRate)
          Get the next set of audio for the balls.
 BufferedImage getVideoFrame(long elapsedTime)
          Get a picture of a set of balls.
 

Method Detail

getVideoFrame

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


Copyright © 2008, 2010 Xuggle