s&
About
The Project
infoAbout s&box mapRoadmap monitoringMetricsEngine startup and usage numbers
Updates
newspaperLatest News
jams
Workshop
Steam
open_in_newSteam Workshop
Assets
view_in_arModels textureMaterials apparelClothing
Forum
Learn
Documentation
rocket_launchGetting Started docsDocumentation apiAPI Reference
Resources
schoolTutorials manage_searchCode Search
Get s&box
Sign in with Steam
Api
Classes
LoadOptions
chevron_left Classes
struct
LoadOptions

Constructors

functionsLoadOptions

Properties

data_objectChanneldata_objectLoopdata_objectLoopEnddata_objectLoopStart
LoadOptions
Options for creating a sound from WAV or MP3 data via Sandbox.SoundFile.FromWav(System.String,System.Span{System.Byte},System.Nullable{Sandbox.SoundFile.LoadOptions}) or 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.
struct Sandbox.SoundFile .
sealedSandbox.Engine

build Constructors 1

LoadOptions ()
Options for creating a sound from WAV or MP3 data via Sandbox.SoundFile.FromWav(System.String,System.Span{System.Byte},System.Nullable{Sandbox.SoundFile.LoadOptions}) or 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.

data_object Properties 4

Channel
Nullable`1
Extract a zero-based source channel as mono; null preserves the file's channels. Sounds are cached by filename, so give each channel its own filename.
Loop
bool
Loop the whole sound. Overridden by Sandbox.SoundFile.LoadOptions.LoopStart/Sandbox.SoundFile.LoadOptions.LoopEnd if set.
LoopEnd
int
End sample of the loop region. 0 uses whatever the file declares.
LoopStart
int
Start sample of the loop region. -1 uses whatever the file declares.
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.
Facepunch
  • News
  • Docs
  • Metrics
  • FAQ
  • Forum
  • Discord
  • Twitter