Skip to main content

Sound wave properties

Accessing Audio Data

Retrieving PCM Buffer

You can retrieve the entire PCM buffer from a sound wave directly.

Get PCM Buffer node

tip

If you need to convert the obtained PCM data to bytes, see Float Array to Bytes.

Playback Properties

Looping

To create a seamless audio loop, you can set looping to automatically rewind the sound wave playback time to zero and play after playback ends.

Set Looping node

Volume Control

You can adjust the volume of the sound being played to suit your needs.

Set Volume node

Pitch Adjustment

You can modify the pitch of the sound being played to your preference.

Set Pitch node

Additional Features

Subtitles

You can set subtitles, namely, define the text and the time at which they should be displayed.

Set Subtitles node

Virtualization Mode

You can set the virtualization mode, such as Play When Silent, which allows the sound wave to continue playback even during silence.

Set Virtualization Mode node

note

This is particularly helpful if you're using sound attenuation to control how audio fades with distance.

Audio Format Modifications

Manual Resampling and Channel Mixing

If you need to change the sample rate or number of channels in the imported sound wave, you can use the appropriate functions to resample and mix the audio data.

Resample Sound Wave and Mix Sound Wave Channels nodes

warning

This will modify the entire sound wave data and affect the output from the OnGeneratePCMData and OnPopulateAudioData delegates accordingly.

Automatic Format Conversion

You can automatically resample and mix all the upcoming audio data to be populated to the specified desired sample rate and number of channels.

Set Initial Desired Sample Rate and Num Of Channels nodes

info

This will also affect the output from the OnGeneratePCMData and OnPopulateAudioData delegates accordingly.