Skip to main content
Version: 2.0.0-preview

Sound

Imports an audio file (WAV / MP3 / OGG / etc.) as a sound source. The signal is decoded and resampled to the project sample rate at playback time. The sound keeps the source's channels until the panner places it in the project's speaker layout.

Speed, the panner, gain, and audio effects run at the sample rate of the file, and the sound is converted to the project's rate after them. To convert it earlier, with the interpolation you choose, add a Resampling effect: the effects after it run at the project's rate.

Library location​

Library → Sound

Properties​

Source​

The audio file to play.

  • Type: SoundSource?
  • Default: null
  • Animatable: No

Channel assignment (ChannelMap)​

Which source channels this sound uses: Auto keeps the source's own channels, and Mono, Stereo, 5.1ch, and 7.1ch assign a source channel, or None, to each sound channel. See Assign source channels.

  • Type: AudioChannelMap
  • Default: AudioChannelMap.Auto
  • Animatable: No

Common properties​

This object inherits from Sound and exposes the common properties declared on its base classes.

Usage​

Audio files can be added by dropping them onto the timeline. Adjustments can be made through inherited Gain and Speed, and Audio Effect can be applied in sequence. Use the inherited panner properties to place the sound. To cut the element at its silent parts, see Auto Split by Silence.

Source​

src/Beutl.Engine/Audio/SourceSound.cs