s&box docs

public sealed class Sandbox.SoundStream

Constructors

Showing 1 constructors

public SoundStream(int sampleRate = 44100, int channels = 1)

Parameters

  • sampleRate: Default: 44100
  • channels: Default: 1

Methods

Showing 5 methods

public void Close()

Close the stream: signals that no more data will be written. Once the internal buffer drains, `Sandbox.SoundHandle.IsPlaying` will become `false`.

public virtual sealed void Dispose()

public void WriteData(System.Span`1<short> data)

Properties

Showing 5 properties

public int Sandbox.SoundStream.Channels { get; set; }

Number of audio channels, as set during its creation.

public int Sandbox.SoundStream.LatencySamplesCount { get; set; }

public int Sandbox.SoundStream.MaxWriteSampleCount { get; set; }

public int Sandbox.SoundStream.QueuedSampleCount { get; set; }

public int Sandbox.SoundStream.SampleRate { get; set; }

Number of samples per second, as set during its creation.

Metadata

FieldValue
NamespaceSandbox
Typeclass
AssemblySandbox.Engine
Doc IDT:Sandbox.SoundStream

On this page