LocalPositionalAudioChannel - SocketSVC Docs
SocketSVC Docs

LocalPositionalAudioChannel

A LocalAudioChannel fixed (or movable) at a point in the world, fading out past #getRange().

這一頁還沒有翻譯,以下顯示英文原文。

Generated from source

Interface com.socketsvc.client.api.LocalPositionalAudioChannel — generated from LocalPositionalAudioChannel.java. Edit the Javadoc in the Java source, then run pnpm gen:api.

package com.socketsvc.client.api;

public interface LocalPositionalAudioChannel extends LocalAudioChannel { ... }

A LocalAudioChannel fixed (or movable) at a point in the world, fading out past #getRange().

Methods

getPosition

SpatialPosition getPosition()

setPosition

void setPosition(SpatialPosition position)

getRange

float getRange()

Blocks the audio can be heard from, before fading to silence.

setRange

void setRange(float range)

getDirection

default SpatialDirection getDirection()

Which way this channel points, and how much quieter it is off-axis.

OMNIDIRECTIONAL by default, which is what every channel was before directions existed. A cone multiplies into the distance gain rather than replacing it, so setting one never makes a channel audible somewhere it would not already have been.

setDirection

default void setDirection(SpatialDirection direction)