Method | Description | |
---|---|---|
AudioFileReader ( string fileName ) : System |
Initializes a new instance of AudioFileReader
|
|
Read ( byte buffer, int offset, int count ) : int |
Reads from this wave stream
|
|
Read ( float buffer, int offset, int count ) : int |
Reads audio from this sample provider
|
Method | Description | |
---|---|---|
Dispose ( bool disposing ) : void |
Disposes this AudioFileReader
|
Method | Description | |
---|---|---|
CreateReaderStream ( string fileName ) : void |
Creates the reader stream, supporting all filetypes in the core NAudio library, and ensuring we are in PCM format
|
|
DestToSource ( long destBytes ) : long |
Helper to convert dest to source bytes
|
|
SourceToDest ( long sourceBytes ) : long |
Helper to convert source to dest bytes
|
public AudioFileReader ( string fileName ) : System | ||
fileName | string | The file to open |
return | System |
protected Dispose ( bool disposing ) : void | ||
disposing | bool | True if called from Dispose |
return | void |
public Read ( byte buffer, int offset, int count ) : int | ||
buffer | byte | Audio buffer |
offset | int | Offset into buffer |
count | int | Number of bytes required |
return | int |
public Read ( float buffer, int offset, int count ) : int | ||
buffer | float | Sample buffer |
offset | int | Offset into sample buffer |
count | int | Number of samples required |
return | int |