# Play mp3 from the local folder in Unity

**URL:** <https://qa.fmod.com/t/play-mp3-from-the-local-folder-in-unity/11730>\
**Category:** Unity\
**Created:** [November 25, 2014, 10:50pm UTC](https://qa.fmod.com/t/play-mp3-from-the-local-folder-in-unity/11730 "2014-11-25T22:50:39Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![JeromKid](https://avatars.discourse-cdn.com/v4/letter/j/cc9497/32.png) [@JeromKid](https://qa.fmod.com/u/JeromKid)\
**Post date:** [November 25, 2014, 10:50pm UTC](https://qa.fmod.com/t/play-mp3-from-the-local-folder-in-unity/11730/1 "2014-11-25T22:50:39Z")

</div>

I tried to play music from the local folder, but there’s nothing but silence when I run the game. Here’s the code (C#):

```
using UnityEngine;
using System.Collections;
using FMOD;

public class music: MonoBehaviour {

FMOD.RESULT result;
FMOD.Sound sound1;
FMOD.System system;
FMOD.Channel channel;
FMOD.ChannelGroup channelGroup;

void Start () {
	FMOD.Factory.System_Create (out system);
	result = system.createChannelGroup (null, out channelGroup);
	channel.setChannelGroup (channelGroup);
	result = system.createSound ("C:/song.mp3", FMOD.MODE.DEFAULT, out sound1);
	result = system.playSound (sound1, channelGroup, false, out channel);
	}
}

```

This script is added as a component to a gameObject on stage.  
Thanks in advance.

---

<div class="post-metadata">

**Author:** ![nick1](https://avatars.discourse-cdn.com/v4/letter/n/47e85d/32.png) [@nick1](https://qa.fmod.com/u/nick1)\
**Post date:** [November 26, 2014, 3:42am UTC](https://qa.fmod.com/t/play-mp3-from-the-local-folder-in-unity/11730/2 "2014-11-26T03:42:53Z")

</div>

Add an Update() method to your behaviour and call system.update.
