> For the complete documentation index, see [llms.txt](https://kree.gitbook.io/documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://kree.gitbook.io/documentation/core-components/audio.md).

# Audio

This component is used to play sound/ music on your game

> Component Author: [Jabo](https://github.com/jabo-bernardo)\
> Release Date: April 12, 2020

{% tabs %}
{% tab title="Usage" %}

```java
new Audio(String pathToAudio);
```

{% endtab %}

{% tab title="Methods" %}

```java
play(); // Play audio once

play(boolean loop); // Play audio loop

stop(); // Stop audio from playing

isPlaying(); // Returns boolean
```

{% endtab %}
{% endtabs %}
