class Sound

in global :: Sandbox

Single source for creating sounds


public static float MasterVolume { get; }

The user's preference for their field of view

public static void Preload( string eventName )

Precaches sound files associated with given sound event by name. This helps avoid stutters on first load of each sound file.

public static string[] DspNames { get; }

Get a list of available DSP names

public static int VoiceSampleRate { get; }

The sample rate for voice data

public static SoundHandle Play( SoundEvent soundEvent, Vector3 position )

Play a sound and set its position

public static SoundHandle Play( string eventName, Vector3 position )

Play a sound and set its position

public static SoundHandle Play( string eventName, Mixer mixer )

Play a sound and set its mixer

public string ToString( )

😔 No documentation found.

public Type GetType( )

😔 No documentation found.

public static void StopAll( float fade )

😔 No documentation found.

public static SoundHandle PlayFile( SoundFile soundFile, float volume = 1, float pitch = 1, float delay = 0 )

😔 No documentation found.

public static SoundHandle PlayFile( SoundFile soundFile, float volume, float pitch, float decibels, float delay )

😔 No documentation found.

public int GetHashCode( )

😔 No documentation found.

public static SoundHandle Play( SoundEvent soundEvent )

😔 No documentation found.

public static SoundHandle Play( string eventName )

😔 No documentation found.

public static void UncompressVoiceData( byte[] buffer, Action<Memory<short>> ondata )

😔 No documentation found.

public static void SetEffect( string name, float value, float velocity = 10, float fadeOut = -1 )

😔 No documentation found.

public bool Equals( object obj )

😔 No documentation found.

public static Transform Listener { get; set; }

😔 No documentation found.