IAudioSystemProperties.java

package libsidplay.config;

/**
 * Some system properties to fine-tune JSIDPlay2 without touching the
 * configuration.
 *
 * @author ken
 *
 */
public interface IAudioSystemProperties {

    /**
     * Browser-reported video buffer ahead of playback in ms before additional
     * backpressure is applied (default: 10s). ThrottlingDriver always paces
     * production in real time, even when this threshold is not reached or no
     * browser timing is available.
     *
     * @jsidplay2.systemProperty jsidplay2.sleep_driver.max_time_gap
     */
    int MAX_TIME_GAP = Integer.parseInt(System.getProperty("jsidplay2.sleep_driver.max_time_gap", "10000"));

    /**
     * Maximum sleep slice in ms during real-time pacing (default: 250ms, must be
     * positive). A longer pacing wait uses multiple slices. Also caps the
     * additional delay per chunk when the browser buffer exceeds MAX_TIME_GAP.
     *
     * @jsidplay2.systemProperty jsidplay2.sleep_driver.sleep_time
     */
    long SLEEP_DRIVER_SLEEP_TIME = Long.parseLong(System.getProperty("jsidplay2.sleep_driver.sleep_time", "250"));
}