# AudioListenerComponentElement

Class · extends [`ComponentElement`](https://api.playcanvas.com/web-components/classes/ComponentElement.md)`<AudioListenerComponent>` · category: Components

Source: https://github.com/playcanvas/web-components/blob/252f001881302c266c8d727044408c32be2bb5e7/src/components/audio-listener-component.ts#L19

The AudioListenerComponentElement interface provides properties and methods for manipulating
[`<pc-audio-listener>`](https://developer.playcanvas.com/user-manual/web-components/tags/pc-audio-listener/) elements.
The AudioListenerComponentElement interface also inherits the properties and methods of the
[HTMLElement](https://developer.mozilla.org/docs/Web/API/HTMLElement) interface.

Engine component: [AudioListenerComponent](https://api.playcanvas.com/engine/classes/AudioListenerComponent.html) (`audiolistener`).

**elementSummary** The `<pc-audio-listener>` element makes its entity the point from which
positional sounds are heard, typically the entity holding the `<pc-camera>`. Must be a child of a
`<pc-entity>`, `<pc-model>` or `<pc-node>`.

## Accessors

### component

```ts
get component(): AudioListenerComponent | null
```

Gets the underlying PlayCanvas audio listener component. `null` until the element is
ready — see [ComponentElement.component](https://api.playcanvas.com/web-components/classes/ComponentElement.md#component).

## Inherited from [ComponentElement](https://api.playcanvas.com/web-components/classes/ComponentElement.md)

- `get closestApp(): AppElement | null`
- `get closestEntity(): EntityBaseElement | null`
- `get enabled(): boolean` · `set enabled(value: boolean)`
- `protected _onReady(): void`
- `protected _resetReady(): void`
- `protected getInitialComponentData(): {}`
- `protected initComponent(): void`
- `ready(): Promise<AudioListenerComponentElement>`
