BASS.NET API for the Un4seen BASS Audio LibraryBassBASS_SampleGetData Method BASS.NET API for the Un4seen BASS Audio Library
Overload List

  NameDescription
Public methodStatic memberCode exampleBASS_SampleGetData(Int32, Byte)
Retrieves a copy of a sample's data.

This overload uses a managed byte[] to reference the buffer data as 8-bit! SHOULD ONLY BE USED, if the sample was created with or BASS_SAMPLE_8BITS!

Public methodStatic memberCode exampleBASS_SampleGetData(Int32, Int16)
Retrieves a copy of a sample's data.

This overload uses a managed short[] to reference the buffer data as 16-bit! SHOULD ONLY BE USED, if the sample was created WITHOUT BASS_SAMPLE_FLOAT or BASS_SAMPLE_8BITS!

Public methodStatic memberBASS_SampleGetData(Int32, Int32)
Retrieves a copy of a sample's data.

This overload uses a managed int[] to reference the buffer data (Note: if we expect to receive 16-bit data, a single Int32 value will contain 2 x 16-bit, left and right channel)! SHOULD ONLY BE USED, if the sample was created WITHOUT BASS_SAMPLE_FLOAT or BASS_SAMPLE_8BITS!

Public methodStatic memberBASS_SampleGetData(Int32, IntPtr)
Retrieves a copy of a sample's data.
Public methodStatic memberCode exampleBASS_SampleGetData(Int32, Single)
Retrieves a copy of a sample's data.

This overload uses a managed float[] to reference the buffer data as 32-bit! SHOULD ONLY BE USED, if the sample was created with BASS_SAMPLE_FLOAT!

Top
See Also

Reference