Hello Guest

Wrong value range in javadoc for AL_PITCH

  • 0 Replies
  • 9167 Views
Wrong value range in javadoc for AL_PITCH
« on: August 04, 2006, 11:34:31 »
Code: [Select]

/**
 * Specify the pitch to be applied, either at source,
 * or on mixer results, at listener.
 * Range: [0.5-2.0]
 * Default: 1.0
 */


According to OpenAL 1.0, which is supported by LWJGL, the range is (0.0f, 1.0f]. See table 15 here: http://www.openal.org/oalspecs-annote/object-sources.html#AEN769 and here an excerpt, which would make a perfect javadoc. :)

Quote
Description: Desired pitch shift, where 1.0 equals identity. Each reduction by 50 percent equals a pitch shift of -12 semitones (one octave reduction). Zero is not a legal value.


In OpenAL 1.1, you can pitch up...

Cheers,
Sor