SpatialAudioEffectConfiguration

@Stable
class SpatialAudioEffectConfiguration(val opClickEffect: SpatialSoundEffect = SpatialSoundEffect.OpClick, val opDragBeginEffect: SpatialSoundEffect = SpatialSoundEffect.OpDragBegin, val opDragEndEffect: SpatialSoundEffect = SpatialSoundEffect.OpDragEnd, val opDragScaleEffect: SpatialSoundEffect = SpatialSoundEffect.OpDragScale, val opCloseEffect: SpatialSoundEffect = SpatialSoundEffect.OpClose, val opLongPressEffect: SpatialSoundEffect = SpatialSoundEffect.OpLongPress, val stateSelectEffect: SpatialSoundEffect = SpatialSoundEffect.StateSelected, val stateUnselectEffect: SpatialSoundEffect = SpatialSoundEffect.StateUnselected, val stateOnEffect: SpatialSoundEffect = SpatialSoundEffect.StateOn, val stateOffEffect: SpatialSoundEffect = SpatialSoundEffect.StateOff, val stateSuccessEffect: SpatialSoundEffect = SpatialSoundEffect.StateSuccess, val stateFailureEffect: SpatialSoundEffect = SpatialSoundEffect.StateFailure)

Configuration for SpatialAudioEffectPlayer. Provide default sound effect for each operation.

Constructors

Link copied to clipboard
constructor(opClickEffect: SpatialSoundEffect = SpatialSoundEffect.OpClick, opDragBeginEffect: SpatialSoundEffect = SpatialSoundEffect.OpDragBegin, opDragEndEffect: SpatialSoundEffect = SpatialSoundEffect.OpDragEnd, opDragScaleEffect: SpatialSoundEffect = SpatialSoundEffect.OpDragScale, opCloseEffect: SpatialSoundEffect = SpatialSoundEffect.OpClose, opLongPressEffect: SpatialSoundEffect = SpatialSoundEffect.OpLongPress, stateSelectEffect: SpatialSoundEffect = SpatialSoundEffect.StateSelected, stateUnselectEffect: SpatialSoundEffect = SpatialSoundEffect.StateUnselected, stateOnEffect: SpatialSoundEffect = SpatialSoundEffect.StateOn, stateOffEffect: SpatialSoundEffect = SpatialSoundEffect.StateOff, stateSuccessEffect: SpatialSoundEffect = SpatialSoundEffect.StateSuccess, stateFailureEffect: SpatialSoundEffect = SpatialSoundEffect.StateFailure)

Types

Link copied to clipboard
object Companion

the companion object of SpatialAudioEffectConfiguration

Properties

Link copied to clipboard

click sound effect in configuration

Link copied to clipboard

close sound effect in configuration

Link copied to clipboard

drag begin sound effect in configuration

Link copied to clipboard

drag end sound effect in configuration

Link copied to clipboard

drag scale sound effect in configuration

Link copied to clipboard

long press sound effect in configuration

Link copied to clipboard

failure state sound effect in configuration

Link copied to clipboard

off state sound effect in configuration

Link copied to clipboard

on state sound effect in configuration

Link copied to clipboard

select state sound effect in configuration

Link copied to clipboard

success state sound effect in configuration

Link copied to clipboard

unselect state sound effect in configuration

Functions

Link copied to clipboard
fun copy(opClickEffect: SpatialSoundEffect = this.opClickEffect, opDragBeginEffect: SpatialSoundEffect = this.opDragBeginEffect, opDragEndEffect: SpatialSoundEffect = this.opDragEndEffect, opDragScaleEffect: SpatialSoundEffect = this.opDragScaleEffect, opCloseEffect: SpatialSoundEffect = this.opCloseEffect, opLongPressEffect: SpatialSoundEffect = this.opLongPressEffect, stateSelectEffect: SpatialSoundEffect = this.stateSelectEffect, stateUnselectEffect: SpatialSoundEffect = this.stateUnselectEffect, stateOnEffect: SpatialSoundEffect = this.stateOnEffect, stateOffEffect: SpatialSoundEffect = this.stateOffEffect, stateSuccessEffect: SpatialSoundEffect = this.stateSuccessEffect, stateFailureEffect: SpatialSoundEffect = this.stateFailureEffect): SpatialAudioEffectConfiguration

Copy this configuration with new values.

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean

override equals function

Link copied to clipboard
open override fun hashCode(): Int

override hashCode function