SoundBuffer

Asset that provides binary audio data to SoundSource. The sound buffer can either be streamed or statically loaded.

See Also

Static Variables


Name Description
asset Parent Asset that maintain the SoundBuffer.
info Access the SoundBufferInfo that contains the active properties of the audio stream.
stream Raw binary audio Stream data.
sample_count Amounts of samples available to preview a waveform of the SoundBuffer inside the editor.

Functions


Name Description
BuildInfo Function that build and return the active SoundBufferInfo associated to the audio data stream.
BuildWaveform Utility function that builds the waveform of the current audio data contained in the SoundBuffer stream.
GetSample Return the closests audio sample for a specific playback time.

SoundBufferInfo


Information about the rate, number of channel and total time covered by the SoundBuffer.

Static Variables


Name Description
channels Amount of audio channel(s) contained in the audio Stream.
rate Playback rate of the audio Stream in Mhz.
total_time The total amount of playback time covered by the audio Stream where 1.0 = 1sec.

Sample


Structure representing a single waveform sample which contains the value for the left and right audio channel.

Static Variables


Name Description
left Sample value for the left audio channel.
right Sample value for the right audio channel.




NRG - API 2022.3.383570 - Thu Jul 28 2022
Copyright © 2022 nrgcore.com. All Rights Reserved. Terms of Service - Privacy Policy - EULA