time scaling with OpenAL

Anyone know how to scale the playback rate of sounds with openal? I’m trying to create a slow motion effect and I need my sounds to slow down by the same amount as the rest of the game and I’ve got no idea how to go about doing this. I would assume its possible to do with openal but I havn’t found any info on it.

Any information on how to do this would be appreciated, I can’t seem to find anything with google… I have a feeling I just don’t know what the effect I’m trying to achieve is actually called :-[

It’s either resampling - length/pitch get modified (deeper in your case) or time stretching - length changes and the pitch remains the same.

Cheapass effect time! Just lower the pitch to 0.1 :slight_smile:

Cas :slight_smile:

I don’t think lowering the pitch will work for what I’m trying to do. The problem is that I could have an animation or something that corresponds with a sound effect, if the animation slows down then the sound needs to slow down as well so that they both end at the same time.

onyx: How can I change the length? it seems pretty clear how to change the pitch, but I’ve seen nothing about a length attribute. I searched google some more for ‘openal time stretching’ but I still can’t find anything :frowning:

I think you’ll find that a sound played at half the pitch will take twice as long to play…

Cas :slight_smile:

oh, did not know that :-[ thnx.