Skip to main content
Version: 1.0.0-preview.37

Velaptor.Content.AudioBuffer

Velaptor

Velaptor.Content

AudioBuffer Enum

The kinds of buffering used for audio.

public enum AudioBuffer

Fields

Full 0

All the audio data has been loaded into memory.

Remarks


Good For:

  • Sounds that need to be played in quick succession such as audio effects.

  • Greatly improves the performance with loading audio content.
    Not Good For:

  • Large audio files that take up much more memory.

  • Large audio files take longer when loading as content.

    It is recommended to use Full for very short audio effects such as lasers, weapons, etc. and
    to use Stream for large files such as game music.

Stream 1

Audio data is streamed from a source during playback.

Remarks


Good For:

  • Large audio files that would take up too much memory if loaded all at once.

  • Greatly improves the performance with loading audio content.
    Not Good For:

  • Sounds that need to be played in quick succession such as audio effects.

    It is recommended to use Stream for large files such as game music and to use Full
    for very short audio effects such as lasers, weapons, etc.