Audio Loom - v0.3.0
    Preparing search index...

    Class PlaybackControls

    Handles playback rate, seeking, and time queries for continuous playback.

    Index

    Constructors

    Methods

    • Sets the playback speed/rate for a channel.

      Parameters

      • rate: number
      • channelId: string = DEFAULT_CHANNEL

      Returns void

    • Gets the current playback rate for a channel.

      Parameters

      • channelId: string = DEFAULT_CHANNEL

      Returns number | null

    • Seeks to a specific time position in the current track.

      Parameters

      • time: number
      • channelId: string = DEFAULT_CHANNEL

      Returns void

    • Gets the current playback time in seconds.

      Parameters

      • channelId: string = DEFAULT_CHANNEL

      Returns number | null

    • Gets the total duration of the current track in seconds.

      Parameters

      • channelId: string = DEFAULT_CHANNEL

      Returns number | null