GAudio.StreamToWavModule.StartWriting C# (CSharp) Méthode

StartWriting() public méthode

Starts writing the stream at precise dspTime if one is specified. If no dspTime is specified, or if the specified dspTime is too soon, starts writing asap. If recNumFrames is specified, writing will automatically stop once the precise number of frames has been written, else you should call EndWriting.
public StartWriting ( double targetDspTime = 0d, int recNumFrames = -1 ) : void
targetDspTime double
recNumFrames int
Résultat void
        public void StartWriting( double targetDspTime = 0d, int recNumFrames = -1 )
        {
            if( _writing )
                return;

            _recFixedFrames = recNumFrames;
            _writtenFrames = 0;
            _waiting = true;
            _targetDspTime = targetDspTime;
            _writer = new GATAsyncWavWriter( _absPath, _stream.NbOfChannels, true );
            _writer.PrepareToWrite();
            _stream.AddAudioThreadStreamClient( this );
        }