Visualizer.SetCaptureSize(Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Sets the capture size, i.
[Android.Runtime.Register("setCaptureSize", "(I)I", "GetSetCaptureSize_IHandler")]
public virtual int SetCaptureSize (int size);
[<Android.Runtime.Register("setCaptureSize", "(I)I", "GetSetCaptureSize_IHandler")>]
abstract member SetCaptureSize : int -> int
override this.SetCaptureSize : int -> int
Parameters
- size
- Int32
requested capture size
Returns
#SUCCESS
in case of success,
#ERROR_BAD_VALUE
in case of failure.
- Attributes
Exceptions
Remarks
Sets the capture size, i.e. the number of bytes returned by #getWaveForm(byte[])
and #getFft(byte[])
methods. The capture size must be a power of 2 in the range returned by #getCaptureSizeRange()
. This method must not be called when the Visualizer is enabled.
Java documentation for android.media.audiofx.Visualizer.setCaptureSize(int)
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.