Name

jump()

Class

AudioSample

Description

Jump to a specific position in the audiosample while continuing to play (or starting to play if it wasn't playing already).

Examples

  • import processing.sound.*;
    AudioSample sample;
    
    void setup() {
      size(640, 360);
      background(255);
    
      // Create a new audiosample
      sample = new AudioSample(this, 100000, 22050);
      sample.jump(3.5);
    }      
    
    void draw() {
    }
    

Syntax

  • audiosample.jump(time)

Parameters

  • time(float)position to jump to, in seconds

Return

  • void