Class SoundDataPart
This class represent a sound data asset part.
Inherited Members
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.  |