Unable to make this work, getting the fmod error
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Networking;
public class TestScript : MonoBehaviour
{
AudioSource audioSource;
AudioClip myClip;
// Start is called before the first frame update
void Start()
{
audioSource = GetComponent<AudioSource>();
StartCoroutine(GetAudioClip());
Debug.Log("Starting to download the audio...");
}
// Update is called once per frame
void Update()
{
}
IEnumerator GetAudioClip()
{
using (UnityWebRequest www = UnityWebRequestMultimedia.GetAudioClip("https://www.the3rdsequence.com/soundb/data/sounds/55/55.ogg", AudioType.OGGVORBIS))
{
yield return www.SendWebRequest();
if (www.isNetworkError)
{
Debug.Log(www.error);
}
else
{
myClip = DownloadHandlerAudioClip.GetContent(www);
audioSource.clip = myClip;
audioSource.Play();
Debug.Log("Audio is Playing");
}
}
}
public void PauseAudio()
{
audioSource.Pause();
}
public void playAudio()
{
audioSource.Play();
}
public void stopAudio()
{
audioSource.Stop();
}
}//class