GAudio.GATAsyncWavWriter.GATAsyncWavWriter C# (CSharp) Method

GATAsyncWavWriter() public method

filePath should be absolute and valid. If the file doesn't exist, it will be immediately created.
public GATAsyncWavWriter ( string filePath, int numChannels, bool overwrite ) : System
filePath string
numChannels int
overwrite bool
return System
        public GATAsyncWavWriter( string filePath, int numChannels, bool overwrite )
        {
            int bufferSize = GATInfo.AudioBufferSizePerChannel * numChannels;

            _inputBufferSize = bufferSize * 4;

            _inputBuffer = new float[ _inputBufferSize ];
            _intBuffer   = new Int16[ bufferSize ];
            _bytesBuffer = new  byte[ bufferSize * 2 ];

            _numChannels 		= numChannels;
            WriteChunkFrames   = GATInfo.AudioBufferSizePerChannel;

            _path = filePath;

            _fs = new FileStream( _path, FileMode.Create, FileAccess.Write );
        }