Steam Audio Reverb Data

SteamAudio.SteamAudioReverbData : ScriptableObject

Baked reverb data stored for a SteamAudioReverbDataPoint.

Public Functions

void Initialize()

Initializes the reverb data to default (empty) values.

int GetImpulseResponseSize()
Returns:

The total size of the impulse response (#channels x #samples).

float GetEnergyFieldData(int channel, int band, int bin)
Parameters:
  • channel[in] The index of the channel.

  • band[in] The index of the band.

  • bin[in] The index of the bin.

Returns:

The energy value stored for a particular channel, band, and bin.

int GetEnergyFieldSize()
Returns:

The total size of the energy field (#channels x #bands x #bins).

float GetImpulseResponseData(int channel, int sample)
Parameters:
  • channel[in] The index of the channel.

  • sample[in] The index of the sample.

Returns:

The sample value stored for a particular channel and sample index.

Public Members

float[] reverbTimes

Reverb times (in seconds), for use in a parametric reverb effect.

One per frequency band.

float[] reverbEnergyField

The energy field, stored in a row-major array of size (#channels x #bands x #bins).

int reverbEnergyFieldNumChannels

The number of channels in the energy field.

int reverbEnergyFieldNumBands

The number of bands in the energy field.

int reverbEnergyFieldNumBins

The number of bins in the energy field.

float[] reverbIR

The impulse response, stored in a row-major array of size (#channels x #samples).

int reverbIRNumChannels

The number of channels in the impulse response.

int reverbIRNumSamples

The number of samples in the impulse response.