public void audioTest() { ballBehave ball = new ballBehave(); ball.freqLen = 8192; //ball.Start(); //Assert.Greater(ball.trackModeCount,0); }
public void BandsTest() { // Use the Assert class to test conditions. ballBehave ball = new ballBehave(); ball.freqLen = 8192; //ball.Start(); Assert.Greater(ball.bands.Length, 0); }
public void audioTest() { ballBehave ball = new ballBehave(); ball.freqLen = 8192; //ball.Start(); //ball.result = GameObject.Find("GameManager").GetComponent<GameManagerScript>(); ball.masterMixer = Resources.Load("Master") as AudioMixer; //ball.audio = GetComponent<AudioSource>(); //ball.pilot = GameObject.Find ("PilotNote").GetComponent<currNote> (); Assert.AreEqual(ball.trackModeCount, 0); }
public void FreqTest() { // Use the Assert class to test conditions. ballBehave ball = new ballBehave(); ball.freqLen = 8192; //ball.result = GameObject.Find("GameManager").GetComponent<GameManagerScript>(); ball.masterMixer = Resources.Load("Master") as AudioMixer; //ball.audio = GetComponent<AudioSource>(); //ball.pilot = GameObject.Find ("PilotNote").GetComponent<currNote> (); Assert.Greater(ball.minFreq, -1); }
public void SetUp1() { ballBehave ball = new ballBehave(); ball.minAmpVal = 0.05f; ball.fileName = 1; //ball.freqTolerance = 20; ball.minFreq = 200; ball.maxFreq = 3000; ball.micDuration = 15f; ball.minMatchCount = 5; ball.numBins = 8; ball.relativeAmpByFreq = new float[ball.freqLen]; int n = ball.relativeAmpByFreq.Length; }