Table of Contents

Class ElectronicArtsAudioCoreMp3Segment

Namespace
LlamaLogic.Packages.Formats
Assembly
LlamaLogic.Packages.dll

Represents a stretch of a sound rebuilt as MP3 by GetMp3(ReadOnlyMemory<byte>, ReadOnlyMemory<byte>): the whole sound, or the part before or after its loop starts (🔒)

public sealed class ElectronicArtsAudioCoreMp3Segment
Inheritance
ElectronicArtsAudioCoreMp3Segment
Inherited Members

Constructors

ElectronicArtsAudioCoreMp3Segment(int, int, IReadOnlyList<ReadOnlyMemory<byte>>)

Represents a stretch of a sound rebuilt as MP3 by GetMp3(ReadOnlyMemory<byte>, ReadOnlyMemory<byte>): the whole sound, or the part before or after its loop starts (🔒)

public ElectronicArtsAudioCoreMp3Segment(int firstSample, int sampleCount, IReadOnlyList<ReadOnlyMemory<byte>> layers)

Parameters

firstSample int
sampleCount int
layers IReadOnlyList<ReadOnlyMemory<byte>>

Properties

FirstSample

Gets the sample of the sound at which the segment begins

public int FirstSample { get; }

Property Value

int

Layers

Gets the MP3s of the segment, one per pair of channels (the last mono if the sound has an odd number of channels), to be played together

public IReadOnlyList<ReadOnlyMemory<byte>> Layers { get; }

Property Value

IReadOnlyList<ReadOnlyMemory<byte>>

Remarks

Each MP3 is constant-bitrate and carries a gapless playback tag, so a decoder that honors it yields exactly SampleCount samples per channel

SampleCount

Gets the number of samples per channel in the segment

public int SampleCount { get; }

Property Value

int