# Sandbox.SoundStream

- Kind: class
- Namespace: `Sandbox`
- Assembly: `Sandbox.Engine`
- Modifiers: sealed

## Constructors

- [`SoundStream`](/api/Sandbox.SoundStream/.ctor)

## Properties

- [`Channels`](/api/Sandbox.SoundStream/Channels): Number of audio channels, as set during its creation.
- [`LatencySamplesCount`](/api/Sandbox.SoundStream/LatencySamplesCount)
- [`MaxWriteSampleCount`](/api/Sandbox.SoundStream/MaxWriteSampleCount)
- [`QueuedSampleCount`](/api/Sandbox.SoundStream/QueuedSampleCount)
- [`SampleRate`](/api/Sandbox.SoundStream/SampleRate): Number of samples per second, as set during its creation.

## Methods

- [`Close`](/api/Sandbox.SoundStream/Close): Close the stream: signals that no more data will be written. Once the internal buffer drains, [Sandbox.SoundHandle.IsPlaying](/api/Sandbox.SoundHandle/IsPlaying) will become `false`.
- [`Dispose`](/api/Sandbox.SoundStream/Dispose)
- [`Play`](/api/Sandbox.SoundStream/Play): Play sound of the stream.
- [`WriteData`](/api/Sandbox.SoundStream/WriteData)
- [`WriteVoiceData`](/api/Sandbox.SoundStream/WriteVoiceData)
