SSpListener_SetMedium
You can use theSSpListener_SetMedium
function to set the sound medium and relative humidity of a listener.
OSStatus SSpListener_SetMedium ( SSpListenerReference inListenerReference, UInt32 inMedium, float inHumidity);
inListenerReference
- A listener reference.
inMedium
- The desired sound medium of the listener. See "Sound Media" (page 1-25) for a description of the available sound media.
inHumidity
- The desired relative humidity of the listener. Humidity is a floating-point value between 0.0 (indicating dry air) and 100.0 (indicating dense fog).
- function result
- A result code.
DESCRIPTION
TheSSpListener_SetMedium
function sets the sound medium and relative humidity of the listener specified by theinListenerReference
parameter to the values specified in theinMedium
andinHumidity
parameters. TheinHumidity
parameter is used only if the value in theinMedium
parameter iskSSpMedium_Air
; otherwise, you should setinHumidity
to 0.0.