JxrPlatformAdapter.SoundPoolExtensionsWrapper


public interface JxrPlatformAdapter.SoundPoolExtensionsWrapper


Interface for a SceneCore SoundPoolExtensionsWrapper.

Summary

Public methods

abstract int
getSpatialSourceType(@NonNull SoundPool soundPool, int streamId)

Returns the spatial source type of the sound.

abstract int
play(
    @NonNull SoundPool soundPool,
    int soundId,
    @NonNull JxrPlatformAdapter.PointSourceAttributes attributes,
    float volume,
    int priority,
    int loop,
    float rate
)

Plays a sound as a point source.

abstract int
play(
    @NonNull SoundPool soundPool,
    int soundId,
    @NonNull JxrPlatformAdapter.SoundFieldAttributes attributes,
    float volume,
    int priority,
    int loop,
    float rate
)

Plays a sound as a sound field.

Public methods

getSpatialSourceType

Added in 1.0.0-alpha02
abstract int getSpatialSourceType(@NonNull SoundPool soundPool, int streamId)

Returns the spatial source type of the sound.

Parameters
@NonNull SoundPool soundPool

The SoundPool to use.

int streamId

The stream ID of the sound.

Returns
int

The spatial source type of the sound.

play

Added in 1.0.0-alpha02
abstract int play(
    @NonNull SoundPool soundPool,
    int soundId,
    @NonNull JxrPlatformAdapter.PointSourceAttributes attributes,
    float volume,
    int priority,
    int loop,
    float rate
)

Plays a sound as a point source.

Parameters
@NonNull SoundPool soundPool

The SoundPool to use.

int soundId

The ID of the sound to play.

@NonNull JxrPlatformAdapter.PointSourceAttributes attributes

The PointSourceAttributes to use.

float volume

The volume of the sound.

int priority

The priority of the sound.

int loop

Whether to loop the sound.

float rate

The playback rate of the sound.

Returns
int

The result of the play operation.

play

Added in 1.0.0-alpha02
abstract int play(
    @NonNull SoundPool soundPool,
    int soundId,
    @NonNull JxrPlatformAdapter.SoundFieldAttributes attributes,
    float volume,
    int priority,
    int loop,
    float rate
)

Plays a sound as a sound field.

Parameters
@NonNull SoundPool soundPool

The SoundPool to use.

int soundId

The ID of the sound to play.

@NonNull JxrPlatformAdapter.SoundFieldAttributes attributes

The SoundFieldAttributes to use.

float volume

The volume of the sound.

int priority

The priority of the sound.

int loop

Whether to loop the sound.

float rate

The playback rate of the sound.

Returns
int

The result of the play operation.