Class ElectronicArtsAudioCoreHeader
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
Codec
Gets the codec of the audio
public ElectronicArtsAudioCoreCodec Codec { get; }
Property Value
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
SampleRate
Gets the number of samples per second
public int SampleRate { get; }
Property Value
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
Storage
Gets where the audio is stored
public ElectronicArtsAudioCoreStorage Storage { get; }
Property Value
Version
Gets the version of the header
public int Version { get; }
Property Value
Methods
Read(ReadOnlySpan<byte>)
Reads the header of a sound
public static ElectronicArtsAudioCoreHeader Read(ReadOnlySpan<byte> data)
Parameters
dataReadOnlySpan<byte>The data of the sound, beginning with its header
Returns
Exceptions
- InvalidDataException
The data is too short for the header it declares, or declares an unknown version, storage or sample rate