Class: FMOD::Reverb3D
- Defined in:
- lib/fmod/reverb3D.rb
Overview
The 3D reverb object is a sphere having 3D attributes (position, minimum distance, maximum distance) and reverb properties.
The properties and 3D attributes of all reverb objects collectively determine, along with the listener’s position, the settings of and input gains into a single 3D reverb DSP.
When the listener is within the sphere of effect of one or more 3D reverbs, the listener’s 3D reverb properties are a weighted combination of such 3D reverbs. When the listener is outside all of the reverbs, the 3D reverb setting is set to the default ambient reverb setting.
Instance Attribute Summary collapse
-
#active ⇒ Boolean
Gets or sets the a state to disable or enable a reverb object so that it does or does not contribute to the 3D scene.
-
#max_distance ⇒ Float
The distance from the center-point that the reverb will not have any effect.
-
#min_distance ⇒ Float
The distance from the center-point that the reverb will have full effect at.
-
#position ⇒ Vector
A Core::Vector containing the 3D position of the center of the reverb in 3D space.
-
#properties ⇒ Reverb
The reverb parameters for the current reverb object.
Attributes inherited from Handle
Method Summary
Methods inherited from Handle
#initialize, #int_ptr, #release, #to_s
Constructor Details
This class inherits a constructor from FMOD::Handle
Instance Attribute Details
#active ⇒ Boolean
Gets or sets the a state to disable or enable a reverb object so that it does or does not contribute to the 3D scene.
24 |
# File 'lib/fmod/reverb3D.rb', line 24 bool_reader(:active, :Reverb3D_GetActive) |
#max_distance ⇒ Float
The distance from the center-point that the reverb will not have any effect.
-
Default: 0.0
52 53 54 55 56 |
# File 'lib/fmod/reverb3D.rb', line 52 def max_distance buffer = "\0" * SIZEOF_FLOAT FMOD.invoke(:Reverb3D_Get3DAttributes, self, nil, nil, buffer) buffer.unpack1('f') end |
#min_distance ⇒ Float
The distance from the center-point that the reverb will have full effect at.
-
Default: 0.0
34 35 36 37 38 |
# File 'lib/fmod/reverb3D.rb', line 34 def min_distance buffer = "\0" * SIZEOF_FLOAT FMOD.invoke(:Reverb3D_Get3DAttributes, self, nil, buffer, nil) buffer.unpack1('f') end |
#position ⇒ Vector
A Core::Vector containing the 3D position of the center of the reverb in 3D space.
-
Default: Core::Vector.zero
70 71 72 73 74 |
# File 'lib/fmod/reverb3D.rb', line 70 def position vector = Vector.zero FMOD.invoke(:Reverb3D_Get3DAttributes, self, vector, nil, nil) vector end |