|
MeiCam SDK For Android
3.14.4
|
Audio waveform display. More...
Public Member Functions | |
| NvsWaveformView (Context context) | |
| NvsWaveformView (Context context, AttributeSet attrs) | |
| NvsWaveformView (Context context, AttributeSet attrs, int defStyleAttr) | |
| NvsWaveformView (Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes) | |
| void | setAudioFilePath (String audioFilePath) |
| Sets the audio file path. More... | |
| String | getAudioFilePath () |
| Gets the audio file path. More... | |
| void | setTrimIn (long trimIn) |
| Sets the trim-in point of the audio file. More... | |
| long | getTrimIn () |
| Gets the trim-in point of the audio file. More... | |
| void | setTrimOut (long trimOut) |
| Sets the trim-out point of the audio file. More... | |
| long | getTrimOut () |
| Gets the trim-in point of the audio. More... | |
| void | setWaveformColor (int waveformColor) |
| Sets the color of the audio waveform. More... | |
| int | getWaveformColor () |
| Gets the color of the audio waveform. More... | |
| void | setSingleChannelMode (boolean singleChannelMode) |
| Sets the single channel waveform mode. More... | |
| boolean | getSingleChannelMode () |
| Gets the info about whether the single channel waveform mode is started. More... | |
| void | onWaveformDataReady (long taskId, String audioFilePath, long audioFileSampleCount, long samplesPerGroup, byte[] leftWaveformData, byte[] rightWaveformData) |
| void | onWaveformDataGenerationFailed (long taskId, String audioFilePath, long samplesPerGroup) |
Protected Member Functions | |
| void | onSizeChanged (int w, int h, int oldw, int oldh) |
| void | onDraw (Canvas canvas) |
| void | onAttachedToWindow () |
| void | onDetachedFromWindow () |
Audio waveform display.
Class for displaying waveform of audio files
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Gets the audio file path.
|
inline |
Gets the info about whether the single channel waveform mode is started.
|
inline |
Gets the trim-in point of the audio file.
|
inline |
Gets the trim-in point of the audio.
|
inline |
Gets the color of the audio waveform.
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
|
inline |
|
inline |
|
inline |
Sets the audio file path.
After audio file is set, the in-point and out-point will be automatically set to 0 and the file length separately!
| audioFilePath | Audio file path |
|
inline |
Sets the single channel waveform mode.
In single channel mode, only one channel of waveform will be drawn even if the audio file is stereo.
| singleChannelMode | Whether to turn on single channel waveform mode |
|
inline |
Sets the trim-in point of the audio file.
| trimIn | The trim-in point of the audio file(in microseconds) |
|
inline |
Sets the trim-out point of the audio file.
| trimOut | The trim-out point of the audio file(in microseconds) |
|
inline |
Sets the color of the audio waveform.
| waveformColor | Color of the audio waveform |
1.8.17