# local

function in `@dioramajs/diorama/audio/graph`

```ts
import { local } from '@dioramajs/diorama/audio/graph'
```

Whether Web Audio can read the element without muting it, as far as the page can tell without a
request: true, false, or undefined for a URL of the page's own origin, which a redirect may
take elsewhere, and for an element without a source yet.

A request without CORS (no `crossorigin`) to another origin is opaque, and a media element
source of an opaque response outputs silence. With `crossorigin` the browser itself refuses a
source its server does not allow, so the graph changes nothing.

```ts
function local(media: HTMLMediaElement): boolean | undefined
```

| Parameter | Type | Description |
| --- | --- | --- |
| `media` | `HTMLMediaElement` |  |

Also exported from `@dioramajs/audio/graph`.

Defined in [packages/audio/src/graph.ts](https://github.com/MasterKurosava/diorama/blob/main/packages/audio/src/graph.ts#L28).
