# PLAYBACK\_STATE always reports back as PLAYBACK\_STATE.STOPPED

**URL:** https://qa.fmod.com/t/playback-state-always-reports-back-as-playback-state-stopped/11791
**Category:** Unity
**Created:** [January 11, 2015, 5:00pm UTC](https://qa.fmod.com/t/playback-state-always-reports-back-as-playback-state-stopped/11791 "2015-01-11T17:00:30Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Jorren](https://avatars.discourse-cdn.com/v4/letter/j/8491ac/32.png) [@Jorren](https://qa.fmod.com/u/Jorren)
#### Post date: [January 11, 2015, 5:00pm UTC](https://qa.fmod.com/t/playback-state-always-reports-back-as-playback-state-stopped/11791/1 "2015-01-11T17:00:30Z")

</div>

Hello

I’m trying to find out the state of the music that is playing.

With the below code, it always reports back as PLAYBACK\_STATE.STOPPED. I would expect the second log message to tell me it is PLAYBACK\_STATE.PLAYING.

What am I doing wrong here?

```
private FMOD.Studio.EventInstance music;

		private FMOD.Studio.PLAYBACK_STATE musicPlaybackState;
void Start ()
		{
				music = FMOD_StudioSystem.instance.GetEvent ("event:/Music");
				music.getPlaybackState (out musicPlaybackState);

				Debug.Log ("state: " + musicPlaybackState);
				music.start ();
				Debug.Log ("state: " + musicPlaybackState);
		
		}

```

Thanks,  
Jeroen

---

<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: [January 13, 2015, 4:36am UTC](https://qa.fmod.com/t/playback-state-always-reports-back-as-playback-state-stopped/11791/2 "2015-01-13T04:36:56Z")

</div>

You have to call getPlaybackState a second time to get updated state.

---

<div class="post-metadata">

### Author: ![Jorren](https://avatars.discourse-cdn.com/v4/letter/j/8491ac/32.png) [@Jorren](https://qa.fmod.com/u/Jorren)
#### Post date: [January 13, 2015, 2:01pm UTC](https://qa.fmod.com/t/playback-state-always-reports-back-as-playback-state-stopped/11791/3 "2015-01-13T14:01:51Z")

</div>

Thanks Nicholas. That’s seems like an awful lot of trouble just to get the playback state. 🙂

Is there an easier way to check if an event is playing?
