Interface 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.
    Author:
    trebor
    • 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