setPitch getPitch

Can someone explain what setPitch and getPitch on the Source class can be used to do? Tried surfing without finding much. May not have searched on the right words of course. Thanks!

Ah, well the Source class in JOAL’s net.games.joal.sound3d package are specific to JOAL, so I wouldn’t be too surprised if Google couldn’t be of any help there.

But looking at it, I’m guessing it’s just makes an OpenAL call of alGetSourcef(sourceID, AL_PITCH, pitch) or alSourcef(sourceID, AL_PITCH, pitch) for get/SetPitch respectively. Those would retrieve/alter the pitch/tone of sounds that will be played through that source.

Thanks for that - it looks like a frequency shift rather a pitch. Might be very useful but I note there’s limits on Linux at least on the possible values for AL_PITCH.