# check

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

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

Whether the element's sound survives the graph. A URL of the page's origin is asked for once:
in `same-origin` mode any redirect to another origin fails, just as it taints the element's own
request. A server without HEAD gets a GET for the first byte.

```ts
function check(media: HTMLMediaElement): Promise<boolean>
```

| 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#L41).
