Skip to content
This repository was archived by the owner on Jun 9, 2023. It is now read-only.

Latest commit

 

History

History
84 lines (69 loc) · 6.55 KB

File metadata and controls

84 lines (69 loc) · 6.55 KB

docs » cp.apple.finalcutpro.inspector.audio.AudioComponent


The Audio Configuration section of the Audio Inspector.

API Overview

  • Functions - API calls offered directly by the extension
  • AudioComponent
  • matches
  • Fields - Variables which can only be accessed from an object returned by a constructor
  • channels
  • role
  • showAs
  • Methods - API calls which can only be made on an object returned by a constructor
  • doShow
  • enabled
  • show

API Documentation

Functions

Signature cp.apple.finalcutpro.inspector.audio.AudioComponent(parent) -> AudioComponent
Type Function
Description Creates a new Audio Component object.
Parameters
  • parent - The parent object.
  • subcomponent - A boolean that defines whether or not this is a subcomponent.
  • componentType - "multicam", "compound" or "standard"
  • index - The index of the component
Returns
  • A new AudioComponent object.
Signature cp.apple.finalcutpro.inspector.audio.AudioComponent.matches(element) -> boolean
Type Function
Description Checks to see if an element matches what we think it should be.
Parameters
  • element - An axuielementObject to check.
Returns
  • true if matches otherwise false

Fields

Signature cp.apple.finalcutpro.inspector.audio.AudioComponent.channels <cp.ui.MenuButton>
Type Field
Description The channels popup menu button for the component. This only present for
Signature cp.apple.finalcutpro.inspector.audio.AudioComponent.role <cp.ui.MenuButton>
Type Field
Description The role popup menu button for the subcomponent. Only present for
Signature cp.apple.finalcutpro.inspector.audio.AudioComponent.showAs <cp.ui.MenuButton>
Type Field
Description The subroles popup menu button for the component. Only present for

Methods

Signature cp.apple.finalcutpro.inspector.audio.AudioComponent:doShow() -> cp.rx.go.Statement
Type Method
Description A Statement that will attempt to show the bar.
Parameters
  • None
Returns
  • The Statement, which will resolve to true if successful, or send an error if not.
Signature cp.apple.finalcutpro.inspector.audio.AudioComponent:enabled() -> Button
Type Method
Description Gets the enable/disable button for the component.
Parameters
  • None
Returns
  • The Button instance.
Signature cp.apple.finalcutpro.inspector.audio.AudioComponent:show() -> self
Type Method
Description Attempts to show the bar.
Parameters
  • None
Returns
  • The AudioComponent instance.