java - How can I pass an AudioInputStream file to a Spectogram(Wave) constructor -


can please me call constructor spectogram() code below

if (ae.getactioncommand().equals("play")) {         try {             ai = audiosystem.getaudioinputstream(file);             c.close();             c = audiosystem.getclip();             c.open(ai);             c.start();              // imagine these types not match.             // how can convert line make workable??              spectogram sp = new spectogram(ai);           } catch (exception e) {             e.printstacktrace();         }     }  

this constructor want call create spectogram , embed in wave player

public spectogram(wave wave) {              this.wave=wave;             buildspectrogram();   } 


Comments

Popular posts from this blog

php - regexp cyrillic filename not matches -

c# - OpenXML hanging while writing elements -

sql - Select Query has unexpected multiple records (MS Access) -