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

The WAVWriter is a special BinaryWriter used to write WAV files. More...

Inheritance diagram for MyCaffe.db.stream.WAVWriter:

Public Member Functions

 WAVWriter (Stream stream)
 The constructor. More...
 
bool WriteAll (int nNewSampleRate=0)
 The WriteAll method writes all WAV file data to the file. More...
 

Static Public Member Functions

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

Properties

WaveFormat Format [getset]
 Get/set the WaveFormat. More...
 
List< double[]> Samples [getset]
 Get/set the frequency samples. More...
 

Detailed Description

The WAVWriter is a special BinaryWriter used to write WAV files.

Definition at line 18 of file WAVWriter.cs.

Constructor & Destructor Documentation

◆ WAVWriter()

MyCaffe.db.stream.WAVWriter.WAVWriter ( Stream  stream)

The constructor.

Parameters
streamSpecifies the output stream.

Definition at line 31 of file WAVWriter.cs.

Member Function Documentation

◆ ByteArrayToStructure< T >()

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

Converts a byte array into 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 222 of file WAVWriter.cs.

◆ StructureToByteArray< T >()

static byte[] MyCaffe.db.stream.WAVWriter.StructureToByteArray< T > ( val)
static

Converts a structure into a byte array.

Template Parameters
TSpecifies the structure type.
Parameters
valSpecifies the structure.
Returns
The byte array is returned.

Definition at line 237 of file WAVWriter.cs.

◆ WriteAll()

bool MyCaffe.db.stream.WAVWriter.WriteAll ( int  nNewSampleRate = 0)

The WriteAll method writes all WAV file data to the file.

Parameters
nNewSampleRateOptionally, specifies a new sample rate to use, if any (default = 0, ignoring this parameter).
Returns
On success, true is returned, otherwise false.

Definition at line 59 of file WAVWriter.cs.

Property Documentation

◆ Format

WaveFormat MyCaffe.db.stream.WAVWriter.Format
getset

Get/set the WaveFormat.

Definition at line 39 of file WAVWriter.cs.

◆ Samples

List<double[]> MyCaffe.db.stream.WAVWriter.Samples
getset

Get/set the frequency samples.

Definition at line 48 of file WAVWriter.cs.


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