Class: NvsAudioClip

NvsAudioClip()

Audio clip, description of audio file. You can also modify the trim in point and out point of audio clip, insert and remove multiple audio special effects, as well as the playback speed.

Constructor

new NvsAudioClip()

Source:

Extends

Methods

appendFx(fxName)

append fx
Parameters:
Name Type Description
fxName fx name
Source:
Returns:

changeCurvesVariableSpeed(curvesString, keepAudioPitch)

change variable speed of curves
Parameters:
Name Type Description
curvesString curves string
keepAudioPitch keep audio pitch
Overrides:
Source:
Returns:

changeSpeed(newSpeed, keepAudioPitch)

change speed
Parameters:
Name Type Description
newSpeed new speed
keepAudioPitch keep audio pitch
Overrides:
Source:
Returns:

changeTrimInPoint(newTrimInPoint, affectSibling)

change trim in point
Parameters:
Name Type Description
newTrimInPoint new trim in point
affectSibling affect sibling
Overrides:
Source:
Returns:

changeTrimOutPoint(newTrimOutPoint, affectSibling)

change trim out point
Parameters:
Name Type Description
newTrimOutPoint new trim out point
affectSibling affect sibling
Overrides:
Source:
Returns:

getAudioSteramIndex()

get index of audio stream
Source:
Returns:

getClipPosByTimelinePosCurvesVariableSpeed(timelinePos)

get clip position according timeline position curve speed
Parameters:
Name Type Description
timelinePos timeline position
Overrides:
Source:
Returns:

getClipVariableSpeedCurvesString()

get curve character string of clip speed
Overrides:
Source:
Returns:

getFadeInDuration()

get duration of fade in
Overrides:
Source:
Returns:

getFadeOutDuration()

get duration of fade out
Overrides:
Source:
Returns:

getFilePath()

get file path
Overrides:
Source:
Returns:

getFxByIndex(fxIndex)

get fx by inddex
Parameters:
Name Type Description
fxIndex fx index
Source:
Returns:

getFxCount()

get fx count
Overrides:
Source:
Returns:

getIndex()

get index
Overrides:
Source:
Returns:

getInPoint()

get in point
Overrides:
Source:
Returns:

getInternalObject() → {Num}

get internal object
Overrides:
Source:
Returns:
Type
Num

getOutPoint()

get out point
Overrides:
Source:
Returns:

getSpeed()

get speed
Overrides:
Source:
Returns:

getTemplateAttachment(key) → {Num}

get template attachment according key
Parameters:
Name Type Description
key key
Overrides:
Source:
Returns:
Type
Num

getTimelinePosByClipPosCurvesVariableSpeed(clipPos)

get timeline position according curve speed of clip position
Parameters:
Name Type Description
clipPos clip position
Overrides:
Source:
Returns:

getTrimIn()

get trim in
Overrides:
Source:
Returns:

getTrimOut()

get trim out
Overrides:
Source:
Returns:

getType()

get type
Overrides:
Source:
Returns:

getVolumeGain()

get volume gain
Overrides:
Source:
Returns:

insertFx(fxName, fxIndex)

insert fx
Parameters:
Name Type Description
fxName fx name
fxIndex fx index
Source:
Returns:

moveTrimPoint(offset)

move trim point
Parameters:
Name Type Description
offset offset
Overrides:
Source:
Returns:

removeFx(fxIndex)

remove fx
Parameters:
Name Type Description
fxIndex fx index
Source:
Returns:

setAudioStreamIndex(streamIndex)

configuration of audio streaming index
Parameters:
Name Type Description
streamIndex stream index
Source:
Returns:

setFadeInDuration(duration)

set duration of fade in
Parameters:
Name Type Description
duration duration
Overrides:
Source:
Returns:

setFadeOutDuration(duration)

set duration of fade out
Parameters:
Name Type Description
duration duration
Overrides:
Source:
Returns:

setInternalObject(obj)

set internal object
Parameters:
Name Type Description
obj internal object
Overrides:
Source:
Returns:

setTemplateAttachment(key, value)

get template attachment
Parameters:
Name Type Description
key key
value value
Overrides:
Source:
Returns:

setVolumeGain(leftVolumeGain, rightVolumeGain)

set volume gain
Parameters:
Name Type Description
leftVolumeGain left volume gain
rightVolumeGain right volume gain
Overrides:
Source:
Returns: