LoudnessCodecController.Create 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.
Overloads
| Name | Description |
|---|---|
| Create(Int32) |
Creates a new instance of |
| Create(Int32, IExecutor, LoudnessCodecController+IOnLoudnessCodecUpdateListener) |
Creates a new instance of LoudnessCodecController. This method should be used when the client wants to alter the codec loudness parameters before they are applied to the audio decoders. |
Create(Int32)
Creates a new instance of LoudnessCodecController
[Android.Runtime.Register("create", "(I)Landroid/media/LoudnessCodecController;", "", ApiSince=35)]
public static Android.Media.LoudnessCodecController Create(int sessionId);
[<Android.Runtime.Register("create", "(I)Landroid/media/LoudnessCodecController;", "", ApiSince=35)>]
static member Create : int -> Android.Media.LoudnessCodecController
Parameters
- sessionId
- Int32
the session ID of the track that will receive data
from the added MediaCodec's
Returns
the LoudnessCodecController instance
- Attributes
Remarks
Creates a new instance of LoudnessCodecController
This method should be used when the client does not need to alter the codec loudness parameters before they are applied to the audio decoders. Otherwise, use #create(int, Executor, OnLoudnessCodecUpdateListener).
Java documentation for android.media.LoudnessCodecController.create(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.
Applies to
Create(Int32, IExecutor, LoudnessCodecController+IOnLoudnessCodecUpdateListener)
Creates a new instance of LoudnessCodecController. This method should be used when the client wants to alter the codec loudness parameters before they are applied to the audio decoders.
[Android.Runtime.Register("create", "(ILjava/util/concurrent/Executor;Landroid/media/LoudnessCodecController$OnLoudnessCodecUpdateListener;)Landroid/media/LoudnessCodecController;", "", ApiSince=35)]
public static Android.Media.LoudnessCodecController Create(int sessionId, Java.Util.Concurrent.IExecutor executor, Android.Media.LoudnessCodecController.IOnLoudnessCodecUpdateListener listener);
[<Android.Runtime.Register("create", "(ILjava/util/concurrent/Executor;Landroid/media/LoudnessCodecController$OnLoudnessCodecUpdateListener;)Landroid/media/LoudnessCodecController;", "", ApiSince=35)>]
static member Create : int * Java.Util.Concurrent.IExecutor * Android.Media.LoudnessCodecController.IOnLoudnessCodecUpdateListener -> Android.Media.LoudnessCodecController
Parameters
- sessionId
- Int32
the session ID of the track that will receive data from the added MediaCodec's
- executor
- IExecutor
Executor to handle the callbacks. Callback and listener events are dispatched through this Executor, providing an easy way to control which thread is used. To dispatch events through the main thread of your application, you can use Context.getMainExecutor(). Otherwise, provide an Executor that dispatches to an appropriate thread.
used for receiving updates
Returns
the LoudnessCodecController instance
- Attributes
Remarks
Creates a new instance of LoudnessCodecController. This method should be used when the client wants to alter the codec loudness parameters before they are applied to the audio decoders. Otherwise, use create(int).
Android reference for android.media.LoudnessCodecController.create.
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.