Invokes the internal 'ModifySamples' method of the Winamp DSP directly (which is only needed for user defined DSPPROC callbacks or in a user defined STREAMPROC).
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_ModifySamplesSTREAM( int plugin, float[] buffer, int length )
Parameters
- plugin
- Type: SystemInt32
The plugin handle (returned by BASS_WADSP_Load(String, Int32, Int32, Int32, Int32, WINAMPWINPROC)). - buffer
- Type: SystemSingle
The array of float values containing the sample data to modify. - length
- Type: SystemInt32
The number of bytes contained in the buffer.
Return Value
Type: Int32The number of bytes modified, which might be different from the number of bytes given. A Winamp DSP might return at max. twice the number of bytes but not less than half the number of bytes.
Remarks
So make sure, that the buffer is at least twice as big as the samples it contains when you call this method, so that the Winamp DSP might have enough space to store it's returned samples into it.
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