956bbdb6d2
* Update to larger bitrate * Add support for sub-voice export --------- Co-authored-by: katboi01 <59540382+katboi01@users.noreply.github.com>
71 lines
1.5 KiB
C#
71 lines
1.5 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Text;
|
|
|
|
namespace NAudio.Wave.WZT
|
|
{
|
|
/// <summary>
|
|
/// Holds information about a RIFF file chunk
|
|
/// </summary>
|
|
public class RiffChunk
|
|
{
|
|
int identifier;
|
|
int length;
|
|
long streamPosition;
|
|
|
|
/// <summary>
|
|
/// Creates a RiffChunk object
|
|
/// </summary>
|
|
public RiffChunk(int identifier, int length, long streamPosition)
|
|
{
|
|
this.identifier = identifier;
|
|
this.length = length;
|
|
this.streamPosition = streamPosition;
|
|
}
|
|
|
|
/// <summary>
|
|
/// The chunk identifier
|
|
/// </summary>
|
|
public int Identifier
|
|
{
|
|
get
|
|
{
|
|
return identifier;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// The chunk identifier converted to a string
|
|
/// </summary>
|
|
public string IdentifierAsString
|
|
{
|
|
get
|
|
{
|
|
return ASCIIEncoding.ASCII.GetString(BitConverter.GetBytes(identifier));
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// The chunk length
|
|
/// </summary>
|
|
public int Length
|
|
{
|
|
get
|
|
{
|
|
return length;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// The stream position this chunk is located at
|
|
/// </summary>
|
|
public long StreamPosition
|
|
{
|
|
get
|
|
{
|
|
return streamPosition;
|
|
}
|
|
}
|
|
}
|
|
}
|