Exports related to audio media.
Interfaces
AudioMedia
Extends AudibleAsset. Extended by RawAudio and ClientRawAudio.
| Property | Type |
|---|---|
asData | StorableMedia |
canBeMuted? | boolean |
createdAt? | string |
decodings | Decoding[] |
duration | number |
hasIntrinsicSizing? | boolean |
hasIntrinsicTiming? | boolean |
id | string |
label? | string |
mediaIds | string[] |
projectId? | string |
properties | Property[] |
resources | Resource[] |
source | string |
targetId | string |
type | MediaType |
updatedAt? | string |
Methods
assetCachePromise(
args):Promise<DataOrError<number>>
| Parameter | Type |
|---|---|
args | AssetCacheArgs |
Returns Promise<DataOrError<number>>. Inherited from AudibleAsset.assetCachePromise.
All files needed for audible and/or visible encode commands.assetFiles(
args):AssetFile[]
| Parameter | Type |
|---|---|
args | CacheArgs |
Returns AssetFile[]. Inherited from AudibleAsset.assetFiles.
boolean(
key):boolean
| Parameter | Type |
|---|---|
key | string |
Returns boolean. Inherited from AudibleAsset.boolean.
changeObject(
propertyId,scalar?):ChangeEditObject
| Parameter | Type |
|---|---|
propertyId | `${string}.${string}` |
scalar? | Scalar |
Returns ChangeEditObject. Inherited from AudibleAsset.changeObject.
changeScalars(
scalars):void
| Parameter | Type |
|---|---|
scalars | Partial<SignalScalarRecord> |
Returns void. Inherited from AudibleAsset.changeScalars.
changesObject(
scalars):ChangePropertiesEditObject
| Parameter | Type |
|---|---|
scalars | Partial<SignalScalarRecord> |
Returns ChangePropertiesEditObject. Inherited from AudibleAsset.changesObject.
clipObject(
object?):ClipObject
| Parameter | Type |
|---|---|
object? | InstanceObject |
Returns ClipObject. Inherited from AudibleAsset.clipObject.
Writes a command file, if it's not a raw asset.commandFilePromise(
args,commandFile):Promise<DataOrError<number>>
| Parameter | Type |
|---|---|
args | ServerPromiseArgs |
commandFile | CommandFile |
Returns Promise<DataOrError<number>>. Inherited from AudibleAsset.commandFilePromise.
constrainedValue(
found,value?):undefined|Scalar
| Parameter | Type |
|---|---|
found | Property |
value? | Scalar |
Returns undefined | Scalar. Inherited from AudibleAsset.constrainedValue.
findResource(…
types):undefined|Resource
| Parameter | Type |
|---|---|
…types | string[] |
Returns undefined | Resource. Inherited from AudibleAsset.findResource.
frames(
quantize):number
| Parameter | Type |
|---|---|
quantize | number |
Returns number. Inherited from AudibleAsset.frames.
instanceArgs(
object?):InstanceArgs
| Parameter | Type |
|---|---|
object? | InstanceObject |
Returns InstanceArgs. Inherited from AudibleAsset.instanceArgs.
instanceFromObject(
object?):Instance
| Parameter | Type |
|---|---|
object? | InstanceObject |
Returns Instance. Inherited from AudibleAsset.instanceFromObject.
number(
key):number
| Parameter | Type |
|---|---|
key | string |
Returns number. Inherited from AudibleAsset.number.
propertiesOfTarget(
targetId):Property[]
| Parameter | Type |
|---|---|
targetId | string |
Returns Property[]. Inherited from AudibleAsset.propertiesOfTarget.
propertyFind(
name):undefined|Property
| Parameter | Type |
|---|---|
name | string |
Returns undefined | Property. Inherited from AudibleAsset.propertyFind.
propertyIds(
targetId): `${string}.${string}`[]
| Parameter | Type |
|---|---|
targetId | string |
Returns `${string}.${string}`[]. Inherited from AudibleAsset.propertyIds.
scalarsRecord(
idOrNames):ScalarRecord
| Parameter | Type |
|---|---|
idOrNames | string[] |
Returns ScalarRecord. Inherited from AudibleAsset.scalarsRecord.
setValue(
nameOrId,scalar?,dontConstrain?):void
| Parameter | Type |
|---|---|
nameOrId | string |
scalar? | Scalar |
dontConstrain? | boolean |
Returns void. Inherited from AudibleAsset.setValue.
shouldSelectProperty(
property):boolean
| Parameter | Type |
|---|---|
property | Property |
Returns boolean. Inherited from AudibleAsset.shouldSelectProperty.
string(
key):string
| Parameter | Type |
|---|---|
key | string |
Returns string. Inherited from AudibleAsset.string.
toJSON():
UnknownRecord
Returns UnknownRecord. Inherited from AudibleAsset.toJSON.
tweenValues(
key,time,range):Scalar[]
| Parameter | Type |
|---|---|
key | string |
time | Time |
range | TimeRange |
Returns Scalar[]. Inherited from AudibleAsset.tweenValues.
tweens(
key):boolean
| Parameter | Type |
|---|---|
key | string |
Returns boolean. Inherited from AudibleAsset.tweens.
value(
key):undefined|Scalar
| Parameter | Type |
|---|---|
key | string |
Returns undefined | Scalar. Inherited from AudibleAsset.value.
StorableMashAudio
Extends StorableMash.MashAudibleProperties.
| Property | Type | Description |
|---|---|---|
assets? | StorableMedia[] | - |
buffer? | number | - |
createdAt? | string | - |
id? | string | - |
label? | string | - |
loop? | boolean | - |
projectId? | string | - |
quantize? | number | Determines duration of clip frames. |
resources? | StorableResource[] | - |
source | "mash" | - |
tracks? | TrackObject[] | - |
type | "audio" | - |
updatedAt? | string | - |
StoredAudio
Extends StoredMedia.AudioProperties. Extended by StoredRawAudio.
| Property | Type |
|---|---|
createdAt? | string |
id | string |
label? | string |
projectId? | string |
resources? | StoredResource[] |
source | string |
type | MediaType |
updatedAt? | string |
StoredMashAudio
Extends StoredMedia.MashAudibleProperties.
| Property | Type | Description |
|---|---|---|
buffer? | number | - |
createdAt? | string | - |
id | string | - |
label? | string | - |
loop? | boolean | - |
projectId? | string | - |
quantize? | number | Determines duration of clip frames. |
resources? | StoredResource[] | - |
source | string | - |
tracks? | TrackObject[] | - |
type | MediaType | - |
updatedAt? | string | - |
Functions
AudioMediaMixin
AudioMediaMixin<
T>(Base):T&Constrained<AudioMedia>
| Type Parameter | Description |
|---|---|
T extends Constrained<AudibleAsset> |
| Parameter | Type | Description |
|---|---|---|
Base | T |
Returns T & Constrained<AudioMedia>.
isAudioMedia
isAudioMedia(
value):value is AudioMedia
| Parameter | Type |
|---|---|
value | any |
Returns value is AudioMedia.