s&
About
The Project
infoAbout s&box mapRoadmap monitoringMetricsEngine startup and usage numbers
Updates
newspaperLatest News published_with_changesChangesRelease-by-release changelog
Games
Browse Games Discover Games
gamejamsvoting

Game Jam III

Ends Fri 25 Sep
ThemeOne More Round

Voting is open. Play the entries and pick the winner.

£50,000
prizepool
View the jam
Workshop
Playable
sports_esportsGamesStandalone games and gamemodes
Assets
landscapeMaps view_in_arModels textureMaterials apparelClothing
appsEverythingEvery asset type in one list
Forum
Learn
Documentation
rocket_launchGetting Started docsDocumentation apiAPI Reference
Resources
schoolTutorials manage_searchCode Search
Get s&box
Sign in with Steam
Api
Audio
MultiChannelBuffer
chevron_left Audio
class
MultiChannelBuffer

Constructors

functionsMultiChannelBuffer

Properties

data_objectChannelCount

Methods

functionsCopyFromfunctionsCopyFromUpmixfunctionsDisposefunctionsGetfunctionsHardLimitfunctionsMixFromfunctionsScalefunctionsSilence
MultiChannelBuffer
Holds up to 8 mix buffers, which usually represent output speakers.
class Sandbox.Audio .
sealedSandbox.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.
Facepunch
  • News
  • Docs
  • Metrics
  • FAQ
  • Forum
  • Discord
  • Twitter