Hi,
Struggling with audio on Unity…
We found below free sound manager for Unity:
but we are having great difficulty incorporating it into our project.
Our Unity game is open-source.
We were hoping someone could look at the project and tell why the audio is not working?
Project can be downloaded below:
http://fallenangelsoftware.com/stuff/files/FerrariF40-Engine/FerrariF40-Engine.zip
The code in question is located in “ScreenFade.cs”:
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;
using DigitalRuby.SoundManagerNamespace;
public class ScreenFade : MonoBehaviour
{
public AudioClip audioClip = null;
public AudioSource audioSrc = null;
// Start is called before the first frame update
void Start()
{
Vector3 position = new Vector3(0, 0, 0);
transform.position = position;
audioClip = Resources.Load<AudioClip>("Scenes/Title-BGM");
audioSrc.clip = audioClip;
audioSrc.volume = 1.0f;
audioSrc.PlayLoopingMusicManaged(1.0f, 1.0f, true);
}
The game’s code compiles with no errors and does run but “Title-BGM” music never plays?
Any help would be appreciated, thanks!
Jesse