Search Results for

    Show / Hide Table of Contents

    Class SoundDataPart

    This class represent a sound data asset part.

    Inheritance
    object
    IdentifiableObject
    AssetPart
    SoundDataPart
    Inherited Members
    IdentifiableObject.Id
    IdentifiableObject.IdHasChanged(Guid)
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Evergine.Framework.Assets.AssetParts
    Assembly: Evergine.Framework.dll
    Syntax
    public class SoundDataPart : AssetPart

    Constructors

    SoundDataPart()

    Initializes a new instance of the SoundDataPart class.

    Declaration
    public SoundDataPart()

    SoundDataPart(Stream, int)

    Initializes a new instance of the SoundDataPart class.

    Declaration
    public SoundDataPart(Stream stream, int size)
    Parameters
    Type Name Description
    Stream stream

    The stream to read the data.

    int size

    The size to read from stream.

    Fields

    Data

    The sound data array. You must use the property DataLength to read the array.

    Declaration
    public byte[] Data
    Field Value
    Type Description
    byte[]

    DataLength

    The sound data length.

    Declaration
    public int DataLength
    Field Value
    Type Description
    int

    Methods

    Free()

    Release the resources used by this instance.

    Declaration
    public void Free()

    Read(BinaryReader)

    Read this asset part.

    Declaration
    public static SoundDataPart Read(BinaryReader reader)
    Parameters
    Type Name Description
    BinaryReader reader

    The binary reader.

    Returns
    Type Description
    SoundDataPart

    The loaded asset part.

    Write(BinaryWriter)

    Writes the sub asset.

    Declaration
    public override void Write(BinaryWriter writer)
    Parameters
    Type Name Description
    BinaryWriter writer

    The stream.

    Overrides
    AssetPart.Write(BinaryWriter)

    Extension Methods

    ReflectionHelper.GetMemberAssembly(object)
    ReflectionHelper.GetTypeName(object)
    In This Article
    Back to top
    Generated by DocFX