コード例 #1
0
 public void GenerateMp3(IFileSystemWrapper fileSystem, string path)
 {
     using (var writer = fileSystem.FileWriter($@"{path}\{this.Title}"))
     {
         byte[] frame = null;
         while ((frame = this.RawData) != null)
         {
             if (this.IsInInterval)
             {
                 writer.Write(frame, 0, frame.Length);
             }
         }
     }
 }