An audio.
More...
Inherits Component.
|
| Audio () |
| Default constructor. More...
|
|
| Audio (IContainer container) |
| Constructor. More...
|
|
void | Close () |
| Clears this object to its blank/initial state. More...
|
|
void | Convert (int samplerate, int bits, int channels) |
| Convert audio format 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...
|
|
bool | New (int seconds) |
| Clears this object to its blank/initial state. More...
|
|
bool | Open (string fileName) |
| Opens the given file. More...
|
|
void | Play () |
| Plays this object. More...
|
|
void | PlayStop () |
| Play stop. More...
|
|
void | SaveSubWave (string waveFilePath, int start, int end) |
| Saves a sub wave. More...
|
|
void | Stop () |
| Stops this object. More...
|
|
|
override void | Dispose (bool disposing) |
| Clean up any resources being used. More...
|
|
◆ Audio() [1/2]
◆ Audio() [2/2]
Audio |
( |
IContainer |
container | ) |
|
|
inline |
◆ Close()
Clears this object to its blank/initial state.
◆ Convert()
void Convert |
( |
int |
samplerate, |
|
|
int |
bits, |
|
|
int |
channels |
|
) |
| |
|
inline |
Convert audio format
- Parameters
-
samplerate | Samplerate |
bits | Bits per sample |
channels | Channels |
◆ Dispose()
override void Dispose |
( |
bool |
disposing | ) |
|
|
inlineprotected |
Clean up any resources being used.
- Parameters
-
disposing | true if managed resources should be disposed; otherwise, false. |
◆ GetValue()
int GetValue |
( |
int |
index, |
|
|
int |
channel |
|
) |
| |
|
inline |
Gets a value.
- Parameters
-
index | Zero-based index of the. |
channel | The channel. |
- Returns
- The value.
◆ GetWindows()
List<double[]> GetWindows |
( |
int |
startInSamples, |
|
|
int |
endInSamples, |
|
|
int |
channel, |
|
|
int |
windowSizeInMs, |
|
|
int |
stepInMs, |
|
|
bool |
normalized |
|
) |
| |
|
inline |
Divides data from the given channel into windows (frames)
◆ New()
Clears this object to its blank/initial state.
◆ Open()
bool Open |
( |
string |
fileName | ) |
|
|
inline |
Opens the given file.
- Parameters
-
fileName | Filename of the file. |
◆ Play()
◆ PlayStop()
◆ ReadWaveSamplesCount()
static int ReadWaveSamplesCount |
( |
string |
audioFilePath | ) |
|
|
inlinestatic |
Reads wave samples count.
- Parameters
-
audioFilePath | Full pathname of the audio file. |
- Returns
- The wave samples count.
◆ SaveSubWave()
void SaveSubWave |
( |
string |
waveFilePath, |
|
|
int |
start, |
|
|
int |
end |
|
) |
| |
|
inline |
Saves a sub wave.
- Parameters
-
waveFilePath | Full pathname of the wave file. |
start | The start. |
end | The end. |
◆ Stop()
◆ AutoRewind
Gets or sets a value indicating whether the automatic rewind.
true if automatic rewind, false if not.
◆ BitsPerSample
Gets or sets the bits per sample.
The samplerate.
◆ Channels
Gets or sets channels count.
Channels count.
◆ FilePath
Gets the full pathname of the file.
The full pathname of the file.
◆ IsPlaying
Gets a value indicating whether this object is playing.
true if this object is playing, false if not.
◆ IsRecording
Gets a value indicating whether this object is playing.
true if this object is playing, false if not.
◆ IsSound
Gets a value indicating whether this object is sound.
true if this object is sound, false if not.
◆ Loop
Gets or sets a value indicating whether the loop playback.
true if loop playback, false if not.
◆ Maximum
Gets the maximum.
The maximum value.
◆ Samplerate
Gets or sets the samplerate.
The samplerate.
◆ SamplesCount
Gets the number of samples.
The number of samples.
◆ SelectionEnd
Gets or sets the selection end.
The selection end.
◆ SelectionStart
float SelectionStart = "New Audio" |
|
getset |
Gets or sets the selection start.
The selection start.
◆ SuggestedFileName
string SuggestedFileName = string.Empty |
|
getset |
Suggested name in SaveFileDialog
◆ WaveFormat
Gets the wave format.
The wave format.
◆ AudioChanged
Event queue for all listeners interested in StartViewPositionChanged events.
Event queue for all listeners interested in ZoomFactorXChanged events.
Event queue for all listeners interested in AudioSelectionChanged events.
Event queue for all listeners interested in AudioChanged events.
◆ CursorPositionChanged
Event queue for all listeners interested in CursorPositionChanged events.
◆ Modified
Event queue for all listeners interested in Modified events.
◆ PlaybackStarted
Event queue for all listeners interested in PlaybackStarted events.
◆ PlaybackStopped
Event queue for all listeners interested in PlaybackStopped events.
◆ RecordingStarted
Event queue for all listeners interested in RecordingStarted events.
The documentation for this class was generated from the following files:
- AnnotationPro.Logic/Audio.cs
- AnnotationPro.Logic/Audio.Designer.cs