MyCaffe  1.12.2.41
Deep learning software for Windows C# programmers.
MyCaffe.db.stream.WAVReader Class Reference

The WAVReader is an extension of the BinaryReader and is used to read WAV files. More...

Inheritance diagram for MyCaffe.db.stream.WAVReader:

Public Member Functions

 WAVReader (Stream stream)
 The constructor. More...
 
bool ReadToEnd (bool bReadHeaderOnly=false)
 Reads the WAV file data. More...
 

Static Protected Member Functions

static T ByteArrayToStructure< T > (byte[] bytes)
 Converts a byte array to a structure. More...
 

Properties

WaveFormat Format [get]
 Returns the WAV file header information. More...
 
List< double[]> Samples [get]
 Returns the frequency samples of the WAV file. More...
 
Dictionary< string, List< string > > ExtraInformation [get]
 Returns the WAV file header information in a key=value format. More...
 
int SampleCount [get]
 Returns the number of samples. More...
 

Detailed Description

The WAVReader is an extension of the BinaryReader and is used to read WAV files.

Definition at line 104 of file WAVReader.cs.

Constructor & Destructor Documentation

◆ WAVReader()

MyCaffe.db.stream.WAVReader.WAVReader ( Stream  stream)

The constructor.

Parameters
streamSpecifies the data stream to read.

Definition at line 117 of file WAVReader.cs.

Member Function Documentation

◆ ByteArrayToStructure< T >()

static T MyCaffe.db.stream.WAVReader.ByteArrayToStructure< T > ( byte[]  bytes)
staticprotected

Converts a byte array to a structure.

Template Parameters
TSpecifies the structure type.
Parameters
bytesSpecifies the byte array.
Returns
The structure is returned.
Type Constraints
T :struct 

Definition at line 376 of file WAVReader.cs.

◆ ReadToEnd()

bool MyCaffe.db.stream.WAVReader.ReadToEnd ( bool  bReadHeaderOnly = false)

Reads the WAV file data.

Parameters
bReadHeaderOnlyOptionally, specifies to only read the header information.
Returns
If read successfully this function returns true, otherwise false.

Definition at line 151 of file WAVReader.cs.

Property Documentation

◆ ExtraInformation

Dictionary<string, List<string> > MyCaffe.db.stream.WAVReader.ExtraInformation
get

Returns the WAV file header information in a key=value format.

Definition at line 141 of file WAVReader.cs.

◆ Format

WaveFormat MyCaffe.db.stream.WAVReader.Format
get

Returns the WAV file header information.

Definition at line 125 of file WAVReader.cs.

◆ SampleCount

int MyCaffe.db.stream.WAVReader.SampleCount
get

Returns the number of samples.

Definition at line 168 of file WAVReader.cs.

◆ Samples

List<double[]> MyCaffe.db.stream.WAVReader.Samples
get

Returns the frequency samples of the WAV file.

Definition at line 133 of file WAVReader.cs.


The documentation for this class was generated from the following file: