コード例 #1
0
ファイル: WaveOutStream.cs プロジェクト: nernst/synth
        public WaveOutStream(int device, AudioBits quality, AudioMode mode, SampleRate rate) : base()
        {
            _Format = new WaveFormat((short)mode, (int)rate, (short)quality);

            this._BaseStream = new MemoryStream(this.InitialCapacity);
            Init();
        }
コード例 #2
0
        protected WaveFormStream(AudioBits quality, AudioMode channels)
        {
            this._AudioBits = quality;
            this._AudioMode = channels;

            this.WriteHeader();
        }