s&
infoAbout
infoAbout s&box newspaperLatest News published_with_changesChanges mapRoadmap monitoringMetrics
gamesGames
sports_esportsBrowse Games exploreDiscover Games
categoryWorkshop
sports_esportsGames landscapeMaps view_in_arModels textureMaterials apparelClothing constructionMore..
forumForum menu_bookLearn
docsDocumentation apiApi Reference schoolTutorials manage_searchCode Search
inputLog in with Steam chevron_leftChange Language
简体中文EnglishРусскийEspañolPortuguês-BrasilDeutsch日本語FrançaisPolskiTürkçe한국어PirateItalianoไทย繁體中文УкраїнськаČeštinaNederlandsMagyarDanskSuomiSvenskaNorskΕλληνικάRomânăБългарскиTiếng ViệtBahasa IndonesiaEspañol-Latinoaméricaالعربية
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.
  • News
  • Docs
  • Metrics
  • FAQ
  • Forum
  • Discord
  • Twitter