All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.monte.media.eightsvx.LoopableAudioClip Maven / Gradle / Ivy

There is a newer version: 1.1
Show newest version
/*
 * @(#)LoopableAudioClip.java  1.0  April 25, 2003
 *
 * Copyright (c) 2003 Werner Randelshofer, Goldau, Switzerland.
 * All rights reserved.
 *
 * You may not use, copy or modify this file, except in compliance with the
 * license agreement you entered into with Werner Randelshofer.
 * For details see accompanying license terms.
 */

package org.monte.media.eightsvx;

import java.applet.*;
/**
 * LoopableAudioClip.
 *
 * @author  Werner Randelshofer, Hausmatt 10, CH-6405 Goldau, Switzerland
 * @version 1.0 April 25, 2003 Created.
 */
public interface LoopableAudioClip extends AudioClip {
    /**
     * Use this as a parameter for method loop(int) to specify
     * a continuous loop.
     */
    public final static int LOOP_CONTINUOUSLY = -1;
    
    /** Starts looping playback from the current position.   Playback will
     * continue to the loop's end point, then loop back to the loop start point
     * count times, and finally continue playback to the end of
     * the clip.
     * 

* If the current position when this method is invoked is greater than the * loop end point, playback simply continues to the * end of the clip without looping. *

* A count value of 0 indicates that any current looping should * cease and playback should continue to the end of the clip. The behavior * is undefined when this method is invoked with any other value during a * loop operation. *

* If playback is stopped during looping, the current loop status is * cleared; the behavior of subsequent loop and start requests is not * affected by an interrupted loop operation. * * @param count the number of times playback should loop back from the * loop's end position to the loop's start position, or * {@link #LOOP_CONTINUOUSLY} to indicate that looping should * continue until interrupted */ public void loop(int count); }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy