Deleted MetaXR, fire alarm is still in progress
This commit is contained in:
@@ -232,6 +232,9 @@ public class AudioManager : MonoBehaviour
|
||||
RuntimeManager.StudioSystem.setParameterByName(parameterName, value);
|
||||
}
|
||||
|
||||
//=====//
|
||||
//Some functions for initialising music, perhaps there will be a need in the future...
|
||||
//=====//
|
||||
public void InitializeMusic(EventReference musicEventReference)
|
||||
{
|
||||
if (musicEventReference.Guid == nullGuid)
|
||||
@@ -262,11 +265,6 @@ public class AudioManager : MonoBehaviour
|
||||
return position;
|
||||
}
|
||||
|
||||
public void StopSFX()
|
||||
{
|
||||
sfxBus.stopAllEvents(FMOD.Studio.STOP_MODE.IMMEDIATE);
|
||||
}
|
||||
|
||||
public void FadeOutMusic()
|
||||
{
|
||||
musicEventInstance.stop(FMOD.Studio.STOP_MODE.ALLOWFADEOUT);
|
||||
@@ -280,6 +278,14 @@ public class AudioManager : MonoBehaviour
|
||||
return state != PLAYBACK_STATE.STOPPED;
|
||||
}
|
||||
|
||||
//=====//
|
||||
//=====//
|
||||
|
||||
public void StopSFX()
|
||||
{
|
||||
sfxBus.stopAllEvents(FMOD.Studio.STOP_MODE.IMMEDIATE);
|
||||
}
|
||||
|
||||
public static bool IsPlaying(EventInstance instance)
|
||||
{
|
||||
instance.getPlaybackState(out PLAYBACK_STATE state);
|
||||
|
||||
Reference in New Issue
Block a user