API ReferenceSandbox
SoundStreamclass
object→SoundStream
Constructors1
Showing 1 constructors
public SoundStream(int sampleRate = 44100, int channels = 1)
| Parameter | Type | Description |
|---|---|---|
| sampleRate = 44100 | int | — |
| channels = 1 | int | — |
No results match this filter.
Methods5
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`.
Returns:
void—public virtual sealed void Dispose()
Returns:
void—public void WriteData(System.Span`1<short> data)
| Parameter | Type | Description |
|---|---|---|
| data | Span<short> | — |
Returns:
void—No results match this filter.
Properties5
Showing 5 properties
public int Sandbox.SoundStream.Channels { get; set; }
Number of audio channels, as set during its creation.
Returns:
int—public int Sandbox.SoundStream.LatencySamplesCount { get; set; }
Returns:
int—public int Sandbox.SoundStream.MaxWriteSampleCount { get; set; }
Returns:
int—public int Sandbox.SoundStream.QueuedSampleCount { get; set; }
Returns:
int—public int Sandbox.SoundStream.SampleRate { get; set; }
Number of samples per second, as set during its creation.
Returns:
int—No results match this filter.