SpatialMediaPlayer
public static class SpatialMediaPlayer
Provides spatial audio extensions on the framework MediaPlayer class.
Summary
Public fields |
|
|---|---|
static @NonNull SpatialMediaPlayer |
Public methods |
|
|---|---|
static final void |
setPointSourceParams(Sets a |
static final void |
setSoundFieldAttributes(Sets a |
Public fields
Public methods
setPointSourceParams
public static final void setPointSourceParams(
@NonNull Session session,
@NonNull MediaPlayer mediaPlayer,
@NonNull PointSourceParams params,
@NonNull Entity entity
)
Sets a PointSourceParams on a MediaPlayer instance.
Must be called before MediaPlayer.prepare. Not compatible with instances created by MediaPlayer.create. Only the params or attributes from the most recent call to this method or setSoundFieldAttributes will apply since they are mutually exclusive.
| Parameters | |
|---|---|
@NonNull Session session |
The current |
@NonNull MediaPlayer mediaPlayer |
The |
@NonNull PointSourceParams params |
The source params to be set. |
@NonNull Entity entity |
The |
setSoundFieldAttributes
public static final void setSoundFieldAttributes(
@NonNull Session session,
@NonNull MediaPlayer mediaPlayer,
@NonNull SoundFieldAttributes attributes
)
Sets a SoundFieldAttributes on a MediaPlayer instance.
Must be called before MediaPlayer.prepare. Not compatible with instances created by MediaPlayer.create. Only the attributes or params from the most recent call to this method or setPointSourceParams will apply since they are mutually exclusive.
| Parameters | |
|---|---|
@NonNull Session session |
The current |
@NonNull MediaPlayer mediaPlayer |
The |
@NonNull SoundFieldAttributes attributes |
The source attributes to be set. |