# Event stops right after (re)start

**URL:** <https://qa.fmod.com/t/event-stops-right-after-re-start/15879>\
**Category:** FMOD Studio\
**Created:** [June 12, 2020, 5:55am UTC](https://qa.fmod.com/t/event-stops-right-after-re-start/15879 "2020-06-12T05:55:54Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![xblisteredavalon](https://avatars.discourse-cdn.com/v4/letter/x/5e9695/32.png) [@xblisteredavalon](https://qa.fmod.com/u/xblisteredavalon)\
**Post date:** [June 12, 2020, 5:55am UTC](https://qa.fmod.com/t/event-stops-right-after-re-start/15879/1 "2020-06-12T05:55:54Z")

</div>

Hey all, I have a “restart level” function that I am using in a Unity game. Code looks like this…  
public void Restart()  
{  
FMOD.Studio.PLAYBACK\_STATE playbackState;  
GameController.musicBus.setPaused(false);  
GameController.sfxBus.setPaused(false);  
SoundManager.songInstance.stop(FMOD.Studio.STOP\_MODE.IMMEDIATE);  
SoundManager.songInstance.release();  
[//masterBus.stopAllEvents](https://masterBus.stopAllEvents)(FMOD.Studio.STOP\_MODE.ALLOWFADEOUT);  
Time.timeScale = 1;  
SceneManager.LoadScene(SceneManager.GetActiveScene().name);  
[//soundManager.Start](https://soundManager.Start)();  
[//soundManager.RestartMusic](https://soundManager.RestartMusic)();  
SoundManager.songInstance = FMODUnity.RuntimeManager.CreateInstance(“event:/Music/” + SoundManager.currentSongName + “bgm”);  
SoundManager.songInstance.start();  
SoundManager.songInstance.getPlaybackState(out playbackState);  
Debug.LogError(playbackState.ToString());  
}

The issue I am having is that the background music that I started at the beginning of the level does not restart when I use this function to reload the scene, even though I have stopped the previous instance, created a new one, and started it, as seen in my code. I have done some debugging so far and am finding that when I restart, the playback state of the background music event is “STARTING” but immediately moves to “STOPPED”. A query of the timeline position tells me that it doesn’t move from 0. I have been debugging this for a while with no luck. I am pretty new to FMOD and programming in general so any help would be greatly appreciated!

---

_[View the full topic](https://qa.fmod.com/t/event-stops-right-after-re-start/15879)._
