SSpListener_SetReverb
You can use theSSpListener_SetReverbfunction 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_SetReverbfunction sets the room size, room reflectivity, and reverberation attenuation of the listener specified by theinListenerReferenceparameter to the values specified in theinRoomSize,inRoomReflectivity, andinReverbAttenuationparameters. TheinRoomReflectivityandinReverbAttenuationparameters are used only wheninRoomSizeis nonzero. IfinRoomSizeis 0, you should setinRoomReflectivityandinReverbAttenuationto 0 as well.
Main | Top of Section | What's New | Apple Computer, Inc. | Find It | Feedback | Help