All pastes #626921 Raw Edit

Something

public text v1 · immutable
·published 2007-07-19 23:32 UTC
rendered paste body
using System;
using System.Collections.Generic;
using System.Text;
using System.IO;

namespace ConsoleApplication1
{
    class Program
    {
        static void Main(string[] args)
        {
            int i = 0;
            FileStream file = new FileStream("sine.wav", FileMode.Create, FileAccess.Write);
            BinaryWriter sw = new BinaryWriter(file);
            string[] strArray1 = { "RIFF" };
            int number1 = 0xF4240;
            string[] strArray2 = {"WAVE","fmt "};
            int [] number2 = {0x00000010,0x0001,1,0xAC44,0x2B110,0x04,32};
            string[] strArray3 = { "data" };
            int number3 = 0xF421C;
            sw.Write(strArray1);
            sw.Write(number1);
            sw.Write(strArray2);
            sw.Write(number2);
            sw.Write(strArray3);
            sw.Write(number3);
            int i;
            while (i < 1000000)
                sw.Write = Math.Sin(1000 * i);
            sw.Close();
        }
    }
}