s&
About
The Project
info
About s&box
map
Roadmap
monitoring
Metrics
Engine startup and usage numbers
Updates
newspaper
Latest News
published_with_changes
Changes
Release-by-release changelog
Games
Browse Games
Discover Games
gamejams
voting
Game Jam III
Ends
Fri 25 Sep
Theme
One More Round
Voting is open. Play the entries and pick the winner.
£
50,000
prizepool
View the jam
Workshop
Playable
sports_esports
Games
Standalone games and gamemodes
Assets
landscape
Maps
view_in_ar
Models
texture
Materials
apparel
Clothing
apps
Everything
Every asset type in one list
Forum
Learn
Documentation
rocket_launch
Getting Started
docs
Documentation
api
API Reference
Resources
school
Tutorials
manage_search
Code Search
Get s&box
Sign in with Steam
Api
Audio
MultiChannelBuffer
chevron_left
Audio
class
MultiChannelBuffer
Constructors
functions
MultiChannelBuffer
Properties
data_object
ChannelCount
Methods
functions
CopyFrom
functions
CopyFromUpmix
functions
Dispose
functions
Get
functions
HardLimit
functions
MixFrom
functions
Scale
functions
Silence
MultiChannelBuffer
Holds up to 8 mix buffers, which usually represent output speakers.
class
Sandbox.Audio
.
sealed
Sandbox.Engine
build
Constructors
1
MultiChannelBuffer
(
channelCount
)
data_object
Properties
1
ChannelCount
int
How many channels do we have
functions
Methods
8
CopyFrom
(
other
)
Set this buffer to this value
CopyFromUpmix
(
other
)
Copies from one buffer to the other. If the other has less channels, we'll upmix
Dispose
(
)
Delete and release all resources. Cannot be used again.
Get
(
i
)
MixBuffer
Get MixBuffer number i
HardLimit
(
)
Clamp each sample to [-1, 1] across all channels to prevent digital clipping.
MixFrom
(
samples
,
mix
)
Mix the target buffer into this buffer
Scale
(
volume
)
Scale volume of this buffer
Silence
(
)
Silence all buffers
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.