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

# MusicLibrary class

> Built-in music library.

# MusicLibrary

## Summary

Built-in music library.

## Signature

```typescript theme={null}
declare class MusicLibrary extends BaseMusicLibrary 
```

## Methods

### load

Register a music track under a unique key.

### mute

Toggle the muted state of all loaded music tracks.

### play

Stop the currently playing track and start the requested one.

## Remarks

Manages a collection of named `HTMLAudioElement` instances and ensures only one track plays at a time. Load tracks with `load` and start playback with `play`. Register with the application:  Access in game code:
