public override tWAVEFORMATEX GetFormat() { short blockAlign = LibUtils.GetBlockAlign(this.source.ChannelCount, this.source.BitsPerSample); return(new tWAVEFORMATEX() { nChannels = (short)this.source.ChannelCount, nSamplesPerSec = this.source.SamplesPerSec, wBitsPerSample = (short)this.source.BitsPerSample, nBlockAlign = blockAlign, nAvgBytesPerSec = LibUtils.GetBytesPerSec(blockAlign, this.source.SamplesPerSec), cbSize = 0, wFormatTag = LibNatives.WAVE_FORMAT_PCM }); }