static PureToneSource()
        {
            var waveFormatBuilder = new WaveFormat.Builder();

            waveFormatBuilder
            .Format(FormatTag.PCM)
            .Channels(SelectedChannelsSetup)
            .SamplesPerSecond(SamplesPerSecond)
            .AverageBytesPerSecond(SamplesPerSecond * (int)SelectedChannelsSetup * BytesPerSample)
            .BlockAlignment((int)SelectedChannelsSetup * BytesPerSample)
            .BitsPerSample(SelectedBitsPerSample)
            .ExtraInfoSize(0);

            DefaultWaveFormat = waveFormatBuilder.Build();
        }
        static PureToneSource()
        {
            var waveFormatBuilder = new WaveFormat.Builder();
            waveFormatBuilder
                .Format(FormatTag.PCM)
                .Channels(SelectedChannelsSetup)
                .SamplesPerSecond(SamplesPerSecond)
                .AverageBytesPerSecond(SamplesPerSecond * (int)SelectedChannelsSetup * BytesPerSample)
                .BlockAlignment((int)SelectedChannelsSetup * BytesPerSample)
                .BitsPerSample(SelectedBitsPerSample)
                .ExtraInfoSize(0);

            DefaultWaveFormat = waveFormatBuilder.Build();
        }