Example #1
0
 // Returns a byte array in the Wave file format containing the given
 // text in morse code
 public byte[] ConvertToMorse(string text)
 {
     DataChunk data = GetText(text.ToLower());
     FormatChunk formatChunk = new FormatChunk();
     HeaderChunk headerChunk = new HeaderChunk(formatChunk, data);
     return headerChunk.ToBytes();
 }
Example #2
0
        // Returns a byte array in the Wave file format containing the given
        // text in morse code
        public byte[] ConvertToMorse(string text)
        {
            DataChunk   data        = GetText(text.ToLower());
            FormatChunk formatChunk = new FormatChunk();
            HeaderChunk headerChunk = new HeaderChunk(formatChunk, data);

            return(headerChunk.ToBytes());
        }