The WAVWriter is a special BinaryWriter used to write WAV files.
More...
The WAVWriter is a special BinaryWriter used to write WAV files.
Definition at line 18 of file WAVWriter.cs.
◆ WAVWriter()
MyCaffe.db.stream.WAVWriter.WAVWriter |
( |
Stream |
stream | ) |
|
The constructor.
- Parameters
-
stream | Specifies the output stream. |
Definition at line 31 of file WAVWriter.cs.
◆ ByteArrayToStructure< T >()
static T MyCaffe.db.stream.WAVWriter.ByteArrayToStructure< T > |
( |
byte[] |
bytes | ) |
|
|
static |
Converts a byte array into a structure.
- Template Parameters
-
T | Specifies the structure type. |
- Parameters
-
bytes | Specifies the byte array. |
- Returns
- The structure is returned.
Definition at line 222 of file WAVWriter.cs.
◆ StructureToByteArray< T >()
static byte[] MyCaffe.db.stream.WAVWriter.StructureToByteArray< T > |
( |
T |
val | ) |
|
|
static |
Converts a structure into a byte array.
- Template Parameters
-
T | Specifies the structure type. |
- Parameters
-
val | Specifies 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
-
nNewSampleRate | Optionally, 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.
◆ Format
◆ 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:
- C:/Data/Data/SS_Projects/Intelligence/GitHub/MyCaffe/MyCaffe.db.stream/stdqueries/wav/WAVWriter.cs