diff --git a/CWLibrary/FormatChunk.cs b/CWLibrary/FormatChunk.cs index 9ee26a8..dcf9e3a 100644 --- a/CWLibrary/FormatChunk.cs +++ b/CWLibrary/FormatChunk.cs @@ -20,8 +20,8 @@ namespace CWLibrary ChunkSize = 16; CompressionCode = 1; NumChannels = 1; - SampleRate = 44100; - BytesPerSecond = 88200; + SampleRate = 11025; + BytesPerSecond = 22050; BlockAlign = 2; SignificantBits = 16; } diff --git a/CWLibrary/TextToMorse.cs b/CWLibrary/TextToMorse.cs index cc0f6c1..95fc87f 100644 --- a/CWLibrary/TextToMorse.cs +++ b/CWLibrary/TextToMorse.cs @@ -29,13 +29,13 @@ namespace CWLibrary private short[] GetWave(double seconds) { short[] waveArray; - int samples = (int)(44100 * seconds); + int samples = (int)(11025 * seconds); waveArray = new short[samples]; for (int i = 0; i < samples; i++) { - waveArray[i] = Convert.ToInt16(32760 * Math.Sin(i * 2 * Math.PI * Frequency / 44100)); + waveArray[i] = Convert.ToInt16(32760 * Math.Sin(i * 2 * Math.PI * Frequency / 11025)); } return waveArray; @@ -49,7 +49,7 @@ namespace CWLibrary private short[] GetSilence(double seconds) { short[] waveArray; - int samples = (int)(44100 * seconds); + int samples = (int)(11025 * seconds); waveArray = new short[samples];