Table of Contents

Class ElectronicArtsAudioCoreHeader

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

Represents the header of a sound in Electronic Arts' AudioCore format, the content of a AudioVocals resource up to its audio (🔒)

public sealed class ElectronicArtsAudioCoreHeader
Inheritance
ElectronicArtsAudioCoreHeader
Inherited Members

Remarks

Adapted from vgmstream's reading of EAAudioCore headers

Properties

ChannelCount

Gets the number of channels

public int ChannelCount { get; }

Property Value

int

Codec

Gets the codec of the audio

public ElectronicArtsAudioCoreCodec Codec { get; }

Property Value

ElectronicArtsAudioCoreCodec

LoopOffset

Gets the offset in the streamed body of the block where the loop starts, if the sound is streamed and loops

public int? LoopOffset { get; }

Property Value

int?

LoopStartSample

Gets the sample at which the loop starts, or null if the sound does not loop

public int? LoopStartSample { get; }

Property Value

int?

SampleCount

Gets the number of samples per channel

public int SampleCount { get; }

Property Value

int

SampleRate

Gets the number of samples per second

public int SampleRate { get; }

Property Value

int

Size

Gets the size of the header in bytes (where the audio begins, for a sound stored in Memory)

public int Size { get; }

Property Value

int

Storage

Gets where the audio is stored

public ElectronicArtsAudioCoreStorage Storage { get; }

Property Value

ElectronicArtsAudioCoreStorage

Version

Gets the version of the header

public int Version { get; }

Property Value

int

Methods

Read(ReadOnlySpan<byte>)

Reads the header of a sound

public static ElectronicArtsAudioCoreHeader Read(ReadOnlySpan<byte> data)

Parameters

data ReadOnlySpan<byte>

The data of the sound, beginning with its header

Returns

ElectronicArtsAudioCoreHeader

Exceptions

InvalidDataException

The data is too short for the header it declares, or declares an unknown version, storage or sample rate