GvrAudioSoundfield

Summary

Inheritance

Inherits from: MonoBehaviour

Public attributes

bypassRoomEffects = true
bool
Denotes whether the room effects should be bypassed.
gainDb = 0.0f
float
Input gain in decibels.
playOnAwake = true
bool
Play source on awake.

Properties

clip0102
AudioClip
The default AudioClip to play.
clip0304
AudioClip
isPlaying
bool
Is the clip playing right now (Read Only)?
loop
bool
Is the audio clip looping?
mute
bool
Un- / Mutes the soundfield. Mute sets the volume=0, Un-Mute restore the original volume.
pitch
float
The pitch of the audio source.
priority
int
Sets the priority of the soundfield.
time
float
Playback position in seconds.
timeSamples
int
Playback position in PCM samples.
volume
float
The volume of the audio source (0.0 to 1.0).

Public functions

Pause()
void
Pauses playing the clip.
Play()
void
Plays the clip.
PlayDelayed(float delay)
void
Plays the clip with a delay specified in seconds.
PlayScheduled(double time)
void
Plays the clip at a specific time on the absolute time-line that AudioSettings.dspTime reads from.
Stop()
void
Stops playing the clip.
UnPause()
void
Unpauses the paused playback.

Public attributes

bypassRoomEffects

bool bypassRoomEffects = true

Denotes whether the room effects should be bypassed.

gainDb

float gainDb = 0.0f

Input gain in decibels.

playOnAwake

bool playOnAwake = true

Play source on awake.

Properties

clip0102

AudioClip clip0102

The default AudioClip to play.

clip0304

AudioClip clip0304

isPlaying

bool isPlaying

Is the clip playing right now (Read Only)?

loop

bool loop

Is the audio clip looping?

mute

bool mute

Un- / Mutes the soundfield. Mute sets the volume=0, Un-Mute restore the original volume.

pitch

float pitch

The pitch of the audio source.

priority

int priority

Sets the priority of the soundfield.

time

float time

Playback position in seconds.

timeSamples

int timeSamples

Playback position in PCM samples.

volume

float volume

The volume of the audio source (0.0 to 1.0).

Public functions

Pause

void Pause()

Pauses playing the clip.

Play

void Play()

Plays the clip.

PlayDelayed

void PlayDelayed(
  float delay
)

Plays the clip with a delay specified in seconds.

PlayScheduled

void PlayScheduled(
  double time
)

Plays the clip at a specific time on the absolute time-line that AudioSettings.dspTime reads from.

Stop

void Stop()

Stops playing the clip.

UnPause

void UnPause()

Unpauses the paused playback.