|
Annotation Pro API
|
A wave. More...
Inherits IWaveProvider.
Public Member Functions | |
| Wave () | |
| Default constructor. More... | |
| void | AppendSilence (int miliseconds) |
| Append silence at the end of audio More... | |
| delegate void | ChangedDelegate (object sender, EventArgs e) |
| Changed delegate. More... | |
| void | Close () |
| Closes this object. More... | |
| void | Convert (int samplerate, int bits, int channels) |
| Convert audio to given wave format More... | |
| void | Crop (int start, int end) |
| Crops audio using given start and stop More... | |
| byte [] | GetSampleBytes (int index, int channel) |
| Gets a sample. More... | |
| int | GetSampleFromStreamPosition () |
| Gets sample from stream position. More... | |
| Wave | GetSubWave (int start, int end) |
| Gets sub wave. More... | |
| int | GetValue (int index, int channel) |
| Gets a value. More... | |
| List< double[]> | GetWindows (int startInSamples, int endInSamples, int channel, int windowSizeInMs, int stepInMs, bool normalized) |
| Divides data from the given channel into windows (frames) More... | |
| void | LoadEmptyWave (int miliseconds) |
| Load empty sound into wave object More... | |
| void | Open (string fileName) |
| Opens the given file with event. More... | |
| virtual void | Open (string fileName, bool fireChangedEvent) |
| Opens the given file. More... | |
| int | Read (byte[] buffer, int offset, int count) |
| Fill the specified buffer with wave data. More... | |
| void | Save (string fileName) |
| Saves the given file. More... | |
| void | SetSample (int index, int channel, byte[] bytes) |
| Sets a sample. More... | |
| void | SetStreamPositionFromSample (int sample) |
| Sets stream position from sample. More... | |
| void | SetValue (int index, int channel, int value) |
| Sets a value. More... | |
| Wave [] | SplitChannels () |
| Splits the channels. More... | |
Properties | |
| int | BitsPerSample [get] |
| Gets the bits per sample. More... | |
| int | Channels [get] |
| Gets the channels. More... | |
| byte [] | Data [get] |
| Gets the data. More... | |
| int | DataLength [get] |
| Gets the length of the data. More... | |
| int | FileLength [get] |
| Gets the length of the file. More... | |
| bool | IsData [get] |
| Audio data is loaded if true More... | |
| bool | LoopPlayback [get, set] |
| Gets or sets a value indicating whether the loop playback. More... | |
| int | MaximumRange [get] |
| Gets the maximum range for this wave format. This range is represented as absolute number. Ex: 8 bit - range 256 Ex2: 16 bit - range 65536 More... | |
| int | MaximumValue [get] |
| Gets the maximum value for this wave format. Maximum value is an absolute number. Ex: 8 bit - maximum value 128. Ex2: 16 bit - maximum value 32768. More... | |
| int | Samplerate [get] |
| Gets the samplerate. More... | |
| int | SamplesCount [get] |
| Gets the number of samples. More... | |
| int | StreamCustomStop [get, set] |
| Gets or sets the stream custom stop. More... | |
| int | StreamPosition [get, set] |
| Gets or sets the stream position. More... | |
Events | |
| ChangedDelegate | Changed |
| Event queue for all listeners interested in Changed events. More... | |
A wave.
|
inline |
Default constructor.
|
inline |
Append silence at the end of audio
| miliseconds | Silence length in miliseconds |
| delegate void ChangedDelegate | ( | object | sender, |
| EventArgs | e | ||
| ) |
Changed delegate.
| sender | Source of the event. |
| e | Event information. |
|
inline |
Closes this object.
|
inline |
Convert audio to given wave format
| samplerate | Samplerate |
| bits | Bits per sample |
| channels | Channels |
|
inline |
Crops audio using given start and stop
| start | cropping start |
| end | cropping stop |
|
inline |
Gets a sample.
| index | Zero-based index of the. |
| channel | The channel. |
|
inline |
Gets sample from stream position.
|
inline |
Gets sub wave.
| start | Start in samples. |
| end | End in samples. |
|
inline |
Gets a value.
| index | Zero-based index of the. |
| channel | The channel. |
|
inline |
Divides data from the given channel into windows (frames)
| startInSamples | start region in samples |
| endInSamples | end region in samples |
| channel | 0-based number of channels |
| windowSizeInMs | window size in ms |
| stepInMs | step in ms |
| normalized | True if want get normalized window |
|
inline |
Load empty sound into wave object
| miliseconds | Duration in miliseconds |
|
inline |
Opens the given file with event.
| Exception | Thrown when an exception error condition occurs. |
| fileName | Filename of the file. |
|
inlinevirtual |
Opens the given file.
| Exception | Thrown when an exception error condition occurs. |
| fileName | Filename of the file. |
| fireChangedEvent | If true fire changed event. |
|
inline |
Fill the specified buffer with wave data.
| buffer | The buffer. |
| offset | The offset. |
| count | Number of. |
|
inline |
Saves the given file.
| fileName | Filename of the file. |
|
inline |
Sets a sample.
| index | Zero-based index of the. |
| channel | The channel. |
| bytes | The bytes. |
|
inline |
Sets stream position from sample.
| sample | The sample. |
|
inline |
Sets a value.
| index | Zero-based index of the. |
| channel | The channel. |
| value | The value. |
|
get |
Gets the bits per sample.
The bits per sample.
|
get |
Gets the channels.
The channels.
|
get |
Gets the data.
The data.
|
get |
Gets the length of the data.
The length of the data.
|
get |
Gets the length of the file.
The length of the file.
|
get |
Audio data is loaded if true
|
getset |
Gets or sets a value indicating whether the loop playback.
true if loop playback, false if not.
|
get |
Gets the maximum range for this wave format. This range is represented as absolute number. Ex: 8 bit - range 256 Ex2: 16 bit - range 65536
|
get |
Gets the maximum value for this wave format. Maximum value is an absolute number. Ex: 8 bit - maximum value 128. Ex2: 16 bit - maximum value 32768.
|
get |
Gets the samplerate.
The samplerate.
|
get |
Gets the number of samples.
The number of samples.
|
getset |
Gets or sets the stream custom stop.
The stream custom stop.
|
getset |
Gets or sets the stream position.
The stream position.
| ChangedDelegate Changed |
Event queue for all listeners interested in Changed events.
1.8.13