// 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(); }
// 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()); }