Class ElectronicArtsAudioCoreMp3Segment
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
firstSampleintsampleCountintlayersIReadOnlyList<ReadOnlyMemory<byte>>
Properties
FirstSample
Gets the sample of the sound at which the segment begins
public int FirstSample { get; }
Property Value
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
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; }