SoundPool Constructors
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.
Overloads
SoundPool(IntPtr, JniHandleOwnership) |
A constructor used when creating managed representations of JNI objects; called by the runtime. |
SoundPool(Int32, Stream, Int32) |
Obsolete.
Constructor. |
SoundPool(IntPtr, JniHandleOwnership)
A constructor used when creating managed representations of JNI objects; called by the runtime.
protected SoundPool (IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Android.Media.SoundPool : nativeint * Android.Runtime.JniHandleOwnership -> Android.Media.SoundPool
Parameters
- transfer
- JniHandleOwnership
A JniHandleOwnershipindicating how to handle javaReference
Remarks
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.
Applies to
SoundPool(Int32, Stream, Int32)
Caution
deprecated
Constructor.
[Android.Runtime.Register(".ctor", "(III)V", "")]
[System.Obsolete("deprecated")]
public SoundPool (int maxStreams, Android.Media.Stream streamType, int srcQuality);
[<Android.Runtime.Register(".ctor", "(III)V", "")>]
[<System.Obsolete("deprecated")>]
new Android.Media.SoundPool : int * Android.Media.Stream * int -> Android.Media.SoundPool
Parameters
- maxStreams
- Int32
the maximum number of simultaneous streams for this SoundPool object
- streamType
- Stream
the audio stream type as described in AudioManager
For example, game applications will normally use
AudioManager#STREAM_MUSIC
.
- srcQuality
- Int32
the sample-rate converter quality. Currently has no effect. Use 0 for the default.
- Attributes
Remarks
Constructor. Constructs a SoundPool object with the following characteristics:
This member is deprecated. use SoundPool.Builder
instead to create and configure a SoundPool instance
Java documentation for android.media.SoundPool.SoundPool(int, int, 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.