# Sandbox.SoundFile.LoadOptions

Options for creating a sound from WAV or MP3 data via `M:Sandbox.SoundFile.FromWav(System.String,System.Span{System.Byte},System.Nullable{Sandbox.SoundFile.LoadOptions})` or `M:Sandbox.SoundFile.FromMp3(System.String,System.Span{System.Byte},System.Nullable{Sandbox.SoundFile.LoadOptions})`.
Left alone, a WAV loops as its own "cue " chunk declares.

- Kind: struct
- Assembly: `Sandbox.Engine`
- Modifiers: sealed

## Constructors

- [`LoadOptions`](/api/Sandbox.SoundFile.LoadOptions/.ctor): Options for creating a sound from WAV or MP3 data via `M:Sandbox.SoundFile.FromWav(System.String,System.Span{System.Byte},System.Nullable{Sandbox.SoundFile.LoadOptions})` or `M:Sandbox.SoundFile.FromMp3(System.String,System.Span{System.Byte},System.Nullable{Sandbox.SoundFile.LoadOptions})`. Left alone, a WAV loops as its own "cue " chunk declares.

## Properties

- [`Loop`](/api/Sandbox.SoundFile.LoadOptions/Loop): Loop the whole sound. Overridden by [Sandbox.SoundFile.LoadOptions.LoopStart](/api/Sandbox.SoundFile.LoadOptions/LoopStart)/[Sandbox.SoundFile.LoadOptions.LoopEnd](/api/Sandbox.SoundFile.LoadOptions/LoopEnd) if set.
- [`LoopEnd`](/api/Sandbox.SoundFile.LoadOptions/LoopEnd): End sample of the loop region. 0 uses whatever the file declares.
- [`LoopStart`](/api/Sandbox.SoundFile.LoadOptions/LoopStart): Start sample of the loop region. -1 uses whatever the file declares.
