Improving the way to load wav files

The way to load the wav file changed. Now it is loaded when the file was
chosen. Before, it was readed in the same place that it was played.