I use this code to get a byte arrary from a wav file and now I want to convert these bytes to doubles so i can get the data of the file :
def fileToByteArray(name: String) = {
val path = Paths.get(name)
try Files.readAllBytes(path)
catch {
case e: IOException =>
e.printStackTrace()
null
}