Home | History | Annotate | Download | only in audio

Lines Matching refs:Pitch

68     protected float pitch = 1;
380 * @return The pitch of the audio, also the speed of playback.
385 return pitch;
389 * Set the pitch of the audio, also the speed of playback.
392 * @param pitch The pitch to set.
393 * @throws IllegalArgumentException If pitch is not between 0.5 and 2.0.
395 public void setPitch(float pitch) {
396 if (pitch < 0.5f || pitch > 2.0f) {
397 throw new IllegalArgumentException("Pitch must be between 0.5 and 2.0");
400 this.pitch = pitch;
402 getRenderer().updateSourceParam(this, AudioParam.Pitch);
737 oc.write(pitch, "pitch", 1);
771 pitch = ic.readFloat("pitch", 1);
805 if (pitch != 1f) {
806 ret += ", pitch=" + pitch;