Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface AudioMixer

混音器AudioMixer接口

Hierarchy

  • AudioMixer

Index

Properties

Readonly exposed

exposed: {}

暴露的参数列表

memberof

AudioMixer

Type declaration

Readonly id

id: string

AudioMixer id

memberof

AudioMixer

Readonly isDestroyed

isDestroyed: boolean

AudioMixer是否已被销毁

memberof

AudioMixer

Readonly masterGroup

masterGroup: AudioMixerGroup

AudioMixer Master Group

memberof

AudioMixer

Readonly outputAudioMixerGroup

outputAudioMixerGroup: AudioMixerGroup

AudioMixer 信号输出到哪里
为空:信号输出到AudioListener
非空:信号输出到指定AudioMixer的指定Group里

memberof

AudioMixer

Readonly resourceID

resourceID: string

生成AudioMixer对象的AudioMixerAsset资源id

memberof

AudioMixer

Readonly snapshots

snapshots: AudioMixerSnapshot[]

AudioMixer存储的快照列表

memberof

AudioMixer

Readonly startSnapshot

startSnapshot: AudioMixerSnapshot

AudioMixer初始化时使用的快照。

memberof

AudioMixer

Readonly targetSnapshot

targetSnapshot: AudioMixerSnapshot

切换快照时,AudioMixer的目标快照

memberof

AudioMixer

Methods

clearExposed

  • clearExposed(name: string): boolean
  • 清除暴露参数。则在切换快照时,该参数会收到transition类型影响。

    memberof

    AudioMixer

    Parameters

    • name: string

    Returns boolean

findMatchingGroup

  • findMatchingGroup(idOrPath: string): AudioMixerGroup[]
  • 获取音频组Group

    memberof

    AudioMixer

    Parameters

    • idOrPath: string

      group id或者group的path。比如 /Master/childGroupName/ (获取childGroupName的所有children) 或者 /Master/childGroupName/grandChildGroupName (获取 grandChildGroupName )

    Returns AudioMixerGroup[]

findSnapshot

  • findSnapshot(idOrName: string): AudioMixerSnapshot
  • 获取快照对象

    memberof

    AudioMixer

    Parameters

    • idOrName: string

      快照id或者快照名称

    Returns AudioMixerSnapshot

getExposed

  • getExposed(name: string): any
  • 获取暴露参数值

    memberof

    AudioMixer

    Parameters

    • name: string

      暴露参数名称

    Returns any

releaseAudioMixer

  • releaseAudioMixer(): void
  • 释放对此AudioMixer对象的引用。当AudioMixer被引用数为0时,AudioMixer才会自行销毁。

    memberof

    AudioMixer

    Returns void

setExposed

  • setExposed(name: string, val: any): void
  • 设置暴露参数值

    memberof

    AudioMixer

    Parameters

    • name: string

      暴露参数名称

    • val: any

    Returns void

transitionTo

  • transitionTo(name: string, duration: number): void
  • transitionTo(snapshot: AudioMixerSnapshot, duration: number): void
  • 切换到指定快照。

    memberof

    AudioMixer

    Parameters

    • name: string

      快照名称

    • duration: number

      切换快照持续时间,单位秒

    Returns void

  • 切换到指定快照。

    memberof

    AudioMixer

    Parameters

    • snapshot: AudioMixerSnapshot
    • duration: number

      切换快照持续时间,单位秒

    Returns void

Generated using TypeDoc