Ultraq
Junior Devvie  
That's what she said
|
 |
«
Reply #3 - Posted
2008-04-21 06:53:39 » |
|
The OpenAL programmers guide has: AL_CONE_OUTER_GAIN f, fv the gain when outside the oriented cone AL_CONE_INNER_ANGLE f, fv, i, iv the gain when inside the oriented cone AL_CONE_OUTER_ANGLE f, fv, i, iv outer angle of the sound cone, in degrees default is 360
So you'd use alSource(f/fv/i/iv) for those, eg:
al.alSourcef(sourceid, AL_CONE_INNER_ANGLE, 1f); al.alSourcef(sourceid, AL_CONE_OUTER_ANGLE, 30f); al.alSourcef(sourceid, AL_CONE_OUTER_GAIN, 1f);
(the float values I'm passing are just examples, I don't even know if they're valid)
|