SSpListener_SetReverb
You can use theSSpListener_SetReverb
function to set the reverberation model of a listener.
OSStatus SSpListener_SetReverb ( SSpListenerReference inListenerReference, float inRoomSize, float inRoomReflectivity, float inReverbAttenuation);
inListenerReference
- A listener reference.
inRoomSize
- The desired room size of the listener. Room size is the distance, in listener units, between two reverberant walls spaced equidistant from the listener. A room size of 0.0 indicates no reverberation.
inRoomReflectivity
- The desired room reflectivity attenuation.
inReverbAttenuation
- The desired reverberation attenuation.
- function result
- A result code.
DESCRIPTION
TheSSpListener_SetReverb
function sets the room size, room reflectivity, and reverberation attenuation of the listener specified by theinListenerReference
parameter to the values specified in theinRoomSize
,inRoomReflectivity
, andinReverbAttenuation
parameters. TheinRoomReflectivity
andinReverbAttenuation
parameters are used only wheninRoomSize
is nonzero. IfinRoomSize
is 0, you should setinRoomReflectivity
andinReverbAttenuation
to 0 as well.