SoundBuffer Constructor (Int16[], UInt32, UInt32)

SFML.Net

SoundBuffer Constructor (Int16, UInt32, UInt32)
Construct a sound buffer from an array of samples

Namespace: SFML.Audio
Assembly: sfmlnet-audio-2 (in sfmlnet-audio-2.dll) Version: 2.2.0.0 (2.2.0)
Syntax
public SoundBuffer(
	short[] samples,
	uint channelCount,
	uint sampleRate
)
Public Sub New ( 
	samples As Short(),
	channelCount As UInteger,
	sampleRate As UInteger
)
public:
SoundBuffer(
	array<short>^ samples, 
	unsigned int channelCount, 
	unsigned int sampleRate
)
new : 
        samples : int16[] * 
        channelCount : uint32 * 
        sampleRate : uint32 -> SoundBuffer

Parameters

samples
Type: SystemInt16
Array of samples
channelCount
Type: SystemUInt32
Channel count
sampleRate
Type: SystemUInt32
Sample rate
Exceptions
ExceptionCondition
LoadingFailedException
See Also