LoadOptionsclass

Options for creating a sound from WAV or MP3 data via `Sandbox.SoundFile.FromWav(System.String,System.Span,System.Nullable)` or `Sandbox.SoundFile.FromMp3(System.String,System.Span,System.Nullable)`. Left alone, a WAV loops as its own "cue " chunk declares.

objectLoadOptions
Namespace
global
Assembly
Sandbox.Engine
Declaration
public sealed struct Sandbox.SoundFile.LoadOptions

Constructors1

Showing 1 constructors

public LoadOptions()PUBLICCONSTRUCTOR

Options for creating a sound from WAV or MP3 data via `Sandbox.SoundFile.FromWav(System.String,System.Span,System.Nullable)` or `Sandbox.SoundFile.FromMp3(System.String,System.Span,System.Nullable)`. Left alone, a WAV loops as its own "cue " chunk declares.

Properties3

Showing 3 properties

public bool Sandbox.SoundFile.LoadOptions.Loop { get; set; }PUBLICGETSET

Loop the whole sound. Overridden by `Sandbox.SoundFile.LoadOptions.LoopStart`/`Sandbox.SoundFile.LoadOptions.LoopEnd` if set.

Returns:bool

public int Sandbox.SoundFile.LoadOptions.LoopEnd { get; set; }PUBLICGETSET

End sample of the loop region. 0 uses whatever the file declares.

Returns:int

public int Sandbox.SoundFile.LoadOptions.LoopStart { get; set; }PUBLICGETSET

Start sample of the loop region. -1 uses whatever the file declares.

Returns:int

On this page