Assets/Plugins/Unity.DSPGraph/Runtime/SampleProviderContainer.cs
/// <summary>
/// Reads a part of the samples as floats from the sample provider.
/// </summary>
/// <param name="destination">The destination buffer that decoded samples are written to.</param>
/// <returns>The number of samples that could be read. Will be less than the destination size when the end of the sound is reached.</returns>
Reads a part of the samples as floats from the sample provider.
Reads a part of the samples as floats from the sample provider .
public int Read(NativeSlice<float> destination)
        {
            CheckValidAndThrow();
            return DSPSampleProviderInternal.Internal_ReadFloatFromSampleProviderById(
                ProviderHandle, destination.GetUnsafePtr(),
                destination.Length);
        }
public int Read ( NativeSlice < float > destination ) { CheckValidAndThrow ( ) ; return DSPSampleProviderInternal . Internal_ReadFloatFromSampleProviderById ( ProviderHandle , destination . GetUnsafePtr ( ) , destination . Length ) ; }
Reads a part of the samples as floats from the sample provider.
Reads a part of the samples as floats from the sample provider .
The number of samples that could be read. Will be less than the destination size when the end of the sound is reached.
The number of samples that could be read . Will be less than the destination size when the end of the sound is reached .
destination
NativeSlice<float>
The destination buffer that decoded samples are written to.
The destination buffer that decoded samples are written to .