> ## Documentation Index
> Fetch the complete documentation index at: https://docs.nanoforge.eu/llms.txt
> Use this file to discover all available pages before exploring further.

# load

> Register a sound effect under a unique key.

import { PageLink } from '/snippets/tsdocs/PageLink.jsx';
import { RefLink } from '/snippets/tsdocs/RefLink.jsx';

# load

## Summary

Register a sound effect under a unique key.

## Signature

```typescript theme={null}
load(sound: string, file: string): void;
```

## Parameters

### sound

**Type**:`string`

Unique key used to reference this sound (e.g. "explosion").

### file

**Type**:`string`

URL or path to the audio file.

## Returns

**Type**:`void`

Register a sound effect under a unique key.

## Remarks

Creates an `HTMLAudioElement` from the provided URL. The sound respects the current muted state at load time.
