Creating a .wav File in C#

前端 未结 4 1304
青春惊慌失措
青春惊慌失措 2021-02-05 15:25

As an excuse to learn C#, I have been trying to code a simple project: creating audio files. To start, I want to make sure that I can write files that meet the WAVE format. I ha

4条回答
  •  误落风尘
    2021-02-05 15:42

    @Alvin-wong answer works perfect. Just wanted to add another suggestion although a few more lines is:

    binaryWriter.Write('R');
    binaryWriter.Write('I');
    binaryWriter.Write('F');
    binaryWriter.Write('F'); 
    

提交回复
热议问题