SoundStream.OnGetData Method

SFML.Net

SoundStreamOnGetData Method
Virtual function called each time new audio data is needed to feed the stream

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

Parameters

samples
Type: SystemInt16
Array of samples to fill for the stream

Return Value

Type: Boolean
True to continue playback, false to stop
See Also