SoundRecorder.OnProcessSamples Method

SFML.Net

SoundRecorderOnProcessSamples Method
Process a new chunk of recorded samples. This virtual function is called every time a new chunk of recorded data is available. The derived class can then do whatever it wants with it (storing it, playing it, sending it over the network, etc.).

Namespace: SFML.Audio
Assembly: sfmlnet-audio-2 (in sfmlnet-audio-2.dll) Version: 2.2.0.0 (2.2.0)
Syntax
protected abstract bool OnProcessSamples(
	short[] samples
)
Protected MustOverride Function OnProcessSamples ( 
	samples As Short()
) As Boolean
protected:
virtual bool OnProcessSamples(
	array<short>^ samples
) abstract
abstract OnProcessSamples : 
        samples : int16[] -> bool 

Parameters

samples
Type: SystemInt16
Array of samples to process

Return Value

Type: Boolean
False to stop recording audio data, true to continue
See Also