private void toistaAani() {
            try {
                URL url = Aanet.class.getResource(this.soundName+".wav");
                AudioInputStream stream = AudioSystem.getAudioInputStream(url);
                AudioFileFormat fileFormat = AudioSystem.getAudioFileFormat(url);
                AudioFormat format = fileFormat.getFormat();
                DataLine.Info info = new DataLine.Info(SourceDataLine.class, format);
                SourceDataLine line = null;
                if (AudioSystem.isLineSupported(info)){
                    try {
                        line = (SourceDataLine) AudioSystem.getLine(info);
                        line.open(format);
                    } catch (final Exception ex) {
                        Virheilmoitus.naytaVirheilmoitus("Äänentoistossa virhe: "+ex.getClass()+" virhe: "+ex.getMessage());
                    }
                }
                
                if (line != null){
                    line.start();
                    int bytesRead = 0;
                    byte[] data = new byte[524288]; //128kb puskuria
                    try {
                        while (bytesRead!=-1){
                            bytesRead = stream.read(data, 0, data.length);
                            if (bytesRead>=0){
                                line.write(data, 0, bytesRead);
                            }
                        }
                        line.drain();
                        line.close();
                    } catch (final Exception ex){
                        Virheilmoitus.naytaVirheilmoitus("Äänentoistossa virhe: "+ex.getClass()+" virhe: "+ex.getMessage());
                    }
                }
                
            } catch (final UnsupportedAudioFileException | IOException ex) {
                Virheilmoitus.naytaVirheilmoitus("Virhe äänen toistossa: " + ex.getMessage());
            }
        
    }