LWJGL Forum

Programming => OpenAL => Topic started by: Sormuras on August 04, 2006, 11:34:31

Title: Wrong value range in javadoc for AL_PITCH
Post by: Sormuras on August 04, 2006, 11:34:31

/**
* 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. :)

QuoteDescription: 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