s&
newspaper
About
info
About s&box
newspaper
Latest News
published_with_changes
Changes
map
Roadmap
monitoring
Metrics
games
Games
sports_esports
Browse Games
rocket
Discover Games
business_center
Workshop
sports_esports
Games
landscape
Maps
chair
Models
texture
Materials
apparel
Clothing
construction
More..
forum
Forum
docs
Docs
docs
Documentation
dashboard
Api Reference
school
Tutorials
input
Log in with Steam
chevron_left
Change Language
简体中文
English
Русский
Español
Português-Brasil
Deutsch
日本語
Français
Polski
Türkçe
한국어
Pirate
Italiano
ไทย
繁體中文
Українська
Čeština
Nederlands
Magyar
Dansk
Suomi
Svenska
Norsk
Ελληνικά
Română
Български
Tiếng Việt
Bahasa Indonesia
Español-Latinoamérica
العربية
Api
Audio
SoundStream
chevron_left
Audio
class
SoundStream
search
Constructors
functions
SoundStream
Properties
data_object
Channels
data_object
LatencySamplesCount
data_object
MaxWriteSampleCount
data_object
QueuedSampleCount
data_object
SampleRate
Methods
functions
Close
functions
Dispose
functions
Play
functions
WriteData
SoundStream
class
Sandbox
.
sealed
Sandbox.Engine
build
Constructors
1
SoundStream
(
sampleRate
,
channels
)
data_object
Properties
5
Channels
int
Number of audio channels, as set during its creation.
LatencySamplesCount
int
MaxWriteSampleCount
int
QueuedSampleCount
int
SampleRate
int
Number of samples per second, as set during its creation.
functions
Methods
4
Close
(
)
Close the stream: signals that no more data will be written. Once the internal buffer drains, Sandbox.SoundHandle.IsPlaying will become
false
.
Dispose
(
)
Play
(
volume
,
pitch
)
SoundHandle
Play sound of the stream.
WriteData
(
data
)
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.