Struct AudioUtil.WaveWriteOptions

Namespace
SpessaSharp.Utils
Assembly
SpessaSharp.dll

This will find the max sample point and set it to 1, and scale others with it. Recommended

public readonly record struct AudioUtil.WaveWriteOptions : IEquatable<AudioUtil.WaveWriteOptions>
Implements
Inherited Members

Constructors

WaveWriteOptions(bool, (float Start, float End)?, WaveMetadata?)

This will find the max sample point and set it to 1, and scale others with it. Recommended

public WaveWriteOptions(bool NormalizeAudio, (float Start, float End)? Loop, AudioUtil.WaveMetadata? Metadata)

Parameters

NormalizeAudio bool

The loop start and end points in seconds. Undefined if no loop should be written.

Loop (float Start, float End)?
Metadata AudioUtil.WaveMetadata?

The metadata to write into the file.

Fields

Default

public static readonly AudioUtil.WaveWriteOptions Default

Field Value

AudioUtil.WaveWriteOptions

Properties

Loop

public (float Start, float End)? Loop { get; init; }

Property Value

(float Start, float End)?

Metadata

The metadata to write into the file.

public AudioUtil.WaveMetadata? Metadata { get; init; }

Property Value

AudioUtil.WaveMetadata?

NormalizeAudio

The loop start and end points in seconds. Undefined if no loop should be written.

public bool NormalizeAudio { get; init; }

Property Value

bool