Add fclose
conversion from double to pcm