while streaming music i'm getting pcm data as type short[] and i want to save it to file in my android device so i can play it again later (using AudioTrack). i wan't the store of the music to be efficent in memory and cpu.
how to save short[] to file cause i dont see any function in.write(short[])?
how can i decrease the space\cpu for saving this file?