Hi Brian, thanks for getting back to me so quickly. Looking a little deeper - the item i drag into the audio visualiser is actually the game object - in this case the same game object as is used for the PlaylistController. So i think the script must just get the 'first' Audiosource from the GO, and not try and look for the second. So i probably need help in changing the script (even if its simple) so it grabs it from a varibale or global property like you have suggested.
This is the frist part of the script ... do you know what i can change to give the behaviour you've suggested?
using UnityEngine;
public class AudioPeer : MonoBehaviour {
public AudioSource audioSource;
public bool useBuffer = true;
private float[] samples = new float[512];
private float[] freqBands = new float[8];
private float[] freqBandBuffers = new float[8];
private float[] bufferDecrease = new float[8];
private float[] freqBandsHighest = new float[8];
private float[] audioBands = new float[8];
private float[] audioBandBuffers = new float[8];
void Update() {
if (audioSource == null) {
return;