コード例 #1
0
ファイル: TextToMorse.cs プロジェクト: jstoddard/CWLibrary
 // 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();
 }
コード例 #2
0
ファイル: TextToMorse.cs プロジェクト: yangzhinong/CWLibrary
        // 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());
        }