public void analyzeFile(string file) { Stream stream = AudioLoader.loadFileFromStreamingAssets(file); AudioStreamReader audioStream = new AudioStreamReader(stream); runAsyncPrintBytes(audioStream); }
// Use this for initialization void Start() { print("START"); // AudioLoader audioLoader = new AudioLoader (); //// audioLoader.loadFileFromStreamingAssets ("gravy_final.wav"); // audioLoader.testReader("gravy_final.wav"); // AudioStreamReader.test(); // // // AudioVisualizer audioVisualizer = new AudioVisualizer (new StandardVisualizer(this, DrawToRawImage)); // audioVisualizer.analyzeFile ("gravy_final_final_16.wav"); Stream stream = AudioLoader.loadFileFromStreamingAssets("gravy_final_final_16.wav"); AudioStreamReader audioStreamReader = new AudioStreamReader(stream); StandardVisualizer2 vis = new StandardVisualizer2(this, DrawToRawImage, audioStreamReader); vis.start(); }