import { AgoraRteAudioSourceType, AgoraRteMediaSourceState } from '../../type'; import { AgoraRteLoopbackObserver, AgoraRteObservableTrack } from './type'; /** * Interface for a loopback audio track in Agora RTE SDK. */ export interface AgoraRteLoopbackTrack extends AgoraRteObservableTrack { /** * Gets the device ID of the loopback audio track. * @returns The device ID of the loopback audio track. */ getDeviceId(): string; /** * Gets the state of the loopback audio track. * @returns The state of the loopback audio track. */ getState(): AgoraRteMediaSourceState; /** * Gets the audio source type of the loopback audio track. */ getAudioSourceType(): AgoraRteAudioSourceType; /** * Starts the loopback audio track. */ start(): number; /** * Stops the loopback audio track. */ stop(): number; /** * Updates the signal volume for the loopback audio track. * @param volume The volume level to set. */ adjustVolume(volume: number): number; }