API ReferenceSandbox
public sealed class Sandbox.SoundStream
Constructors
Showing 1 constructors
public SoundStream(int sampleRate = 44100, int channels = 1)
Parameters
sampleRate: Default: 44100channels: Default: 1
No results match this filter.
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)
No results match this filter.
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.
No results match this filter.
Metadata
| Field | Value |
|---|---|
| Namespace | Sandbox |
| Type | class |
| Assembly | Sandbox.Engine |
| Doc ID | T:Sandbox.SoundStream |