BASS.NET API for the Un4seen BASS Audio Library

BassWaDspBASS_WADSP_ModifySamplesDSP Method (Int32, Byte, Int32)

BASS.NET API for the Un4seen BASS Audio Library
Invokes the internal 'ModifySamples' method of the Winamp DSP directly (which is only needed for user defined DSPPROC callbacks).

Namespace:  Un4seen.Bass.AddOn.WaDsp
Assembly:  Bass.Net (in Bass.Net.dll) Version: 2.4.17.5
Syntax

[DllImportAttribute("bass_wadsp")]
public static int BASS_WADSP_ModifySamplesDSP(
	int plugin,
	byte[] buffer,
	int length
)

Parameters

plugin
Type: SystemInt32
The plugin handle (returned by BASS_WADSP_Load(String, Int32, Int32, Int32, Int32, WINAMPWINPROC)).
buffer
Type: SystemByte
The array of byte values containing the sample data to modify.
length
Type: SystemInt32
The number of bytes contained in the buffer.

Return Value

Type: Int32
The number of bytes modified, which should always be the number of bytes specified when calling this method. Or 0, if an error occured.
Remarks

This method can and should only be used with those Winamp DSPs which return exactly as much samples as provided - meaning not modifying the samplerate, tempo, pitch etc.!

This method can be used with 8-bit, 16-bit or float channels. Since all Winamp DSPs will internally only work with 16-bit channels an automatic internal conversion from 8-bit resp. float to 16-bit and back will take place.

See Also

Reference