Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

audio-transport

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

audio-transport

Audio Transport control.

  • 1.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

audio-transport

Audio Transport control.

npm i audio-transport pnpm add audio-transport yarn add audio-transport

API

# AudioTransportElement

    # constructor()
    # $

      Context<AudioTransportElement & JsxContext<AudioTransportElement> & Omit<{

      # ctor

        Class<T>

      <T>(ctor)  =>

        CleanClassT

      # ctx

        T | Class<T>

      <T>(ctx)  =>

        WrapperT

      __module

      # Boolean

        undefined | boolean

      # Number

        undefined | number

      # String

        undefined | string

      "transition"

    # Bpm

      # ()

        ()  =>

          VKid

    # Logo

      # ()

        ()  =>

          VKid

    # NumberInput  =  ...

      Component<NumberInputElement, HTMLElement>

    # PlayPauseStop

      # ()

        ()  =>

          VKid

    # Time

      # ()

        ()  =>

          VKid

    # analyserBuffer  =  ...

      Float32Array

    # analyserNode  =  ...

      AnalyserNode

    # audioContext  =  ...

      AudioContext

    # bar

      HTMLSpanElement

    # beat

      HTMLSpanElement

    # bpm  =  120

      number

    # clipLag  =  3000

      number

    # clipThreshold  =  ...

      number

    # clipping  =  true

      boolean

    # context

      ContextClass<AudioTransportElement & JsxContext<AudioTransportElement> & Omit<{

      # ctor

        Class<T>

      <T>(ctor)  =>

        CleanClassT

      # ctx

        T | Class<T>

      <T>(ctx)  =>

        WrapperT

      __module

      # Boolean

        undefined | boolean

      # Number

        undefined | number

      # String

        undefined | string

      "transition"

    # dispatch

      Dispatch<

      # (name, detail, init)

        # name

          Event | Narrow<K, string>

        # detail
        # init

          CustomEventInit<any>

        <K, E>(name, detail, init)  =>

      # gradient  =  ...

        CanvasGradient

      # gradientCanvas  =  ...

        HTMLCanvasElement & {

        # height  =  1

          number

        # width  =  100

          number

      # gradientCanvasCtx  =  ...

        CanvasRenderingContext2D

      # host
      # lastClip  =  0

        number

      # lastPeak  =  0

        number

      # mainGain  =  ...

        GainNode

      # onmounted
      # onunmounted
      # pause  =  ...

        Fn<[ ], void>

      # pausedTime  =  0

        number

      # peak  =  1

        number

      # peakLag  =  1000

        number

      # peakVolume  =  1

        number

      # play  =  ...

        Fn<[ ], void>

      # playOrPause  =  ...

        Fn<[ ], void>

      # schedulerNode  =  ...

        SchedulerNode

      # sixt

        HTMLSpanElement

      # start  =  ...

        Fn<[ ], Promise<void>>

      # startTime  =  0

        number

      # state  =  ...

        State<AudioTransportElement, {

        # Idle  =  'idle'

          "idle"

        # Paused  =  'paused'

          "paused"

        # Playing  =  'playing'

          "playing"

        # Stopped  =  'stopped'

          "stopped"

        "idle""playing""paused""stopped"EventMethodsAudioTransportElement

        # idlecancel

          CustomEvent<any>

        # idleend

          CustomEvent<any>

        # idlepause

          CustomEvent<any>

        # idleresume

          CustomEvent<any>

        # idlestart

          CustomEvent<any>

        # pausedcancel

          CustomEvent<any>

        # pausedend

          CustomEvent<any>

        # pausedpause

          CustomEvent<any>

        # pausedresume

          CustomEvent<any>

        # pausedstart

          CustomEvent<any>

        # playingcancel

          CustomEvent<any>

        # playingend

          CustomEvent<any>

        # playingpause

          CustomEvent<any>

        # playingresume

          CustomEvent<any>

        # playingstart

          CustomEvent<any>

        # stoppedcancel

          CustomEvent<any>

        # stoppedend

          CustomEvent<any>

        # stoppedpause

          CustomEvent<any>

        # stoppedresume

          CustomEvent<any>

        # stoppedstart

          CustomEvent<any>

        InlineEventMapAudioTransportElement

        # idlecancel

          CustomEvent<any>

        # idleend

          CustomEvent<any>

        # idlepause

          CustomEvent<any>

        # idleresume

          CustomEvent<any>

        # idlestart

          CustomEvent<any>

        # pausedcancel

          CustomEvent<any>

        # pausedend

          CustomEvent<any>

        # pausedpause

          CustomEvent<any>

        # pausedresume

          CustomEvent<any>

        # pausedstart

          CustomEvent<any>

        # playingcancel

          CustomEvent<any>

        # playingend

          CustomEvent<any>

        # playingpause

          CustomEvent<any>

        # playingresume

          CustomEvent<any>

        # playingstart

          CustomEvent<any>

        # stoppedcancel

          CustomEvent<any>

        # stoppedend

          CustomEvent<any>

        # stoppedpause

          CustomEvent<any>

        # stoppedresume

          CustomEvent<any>

        # stoppedstart

          CustomEvent<any>

      # stop  =  ...

        Fn<[ ], void>

      # volume  =  1

        number

      # vu

        HTMLElement

      # created(ctx)

        # ctx

          Context<AudioTransportElement & JsxContext<AudioTransportElement> & Omit<{

          # ctor

            Class<T>

          <T>(ctor)  =>

            CleanClassT

          # ctx

            T | Class<T>

          <T>(ctx)  =>

            WrapperT

          __module

          # Boolean

            undefined | boolean

          # Number

            undefined | number

          # String

            undefined | string

          "transition"

        created(ctx)  =>

        # mounted($)

          # $

            Context<AudioTransportElement & JsxContext<AudioTransportElement> & Omit<{

            # ctor

              Class<T>

            <T>(ctor)  =>

              CleanClassT

            # ctx

              T | Class<T>

            <T>(ctx)  =>

              WrapperT

            __module

            # Boolean

              undefined | boolean

            # Number

              undefined | number

            # String

              undefined | string

            "transition"

          mounted($)  =>

          # on(name)
          # setParam(param, targetValue, slope)

            # param

              AudioParam

            # targetValue

              number

            # slope  =  0.015

              number

            setParam(param, targetValue, slope)  =>

            # toJSON()

          # TransportableNode

            {

            # start

              # (time)

                # time

                  number

                (time)  =>

              # stop

                # (time)

                  # time

                    number

                  (time)  =>

              # AudioTransportState  =  ...

                {

                # Idle  =  'idle'

                  "idle"

                # Paused  =  'paused'

                  "paused"

                # Playing  =  'playing'

                  "playing"

                # Stopped  =  'stopped'

                  "stopped"

              Credits

              Contributing

              Fork or edit and submit a PR.

              All contributions are welcome!

              License

              MIT © 2022 stagas

              FAQs

              Package last updated on 22 Aug 2022

              Did you know?

              Socket

              Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

              Install

              Related posts

              SocketSocket SOC 2 Logo

              Product

              • Package Alerts
              • Integrations
              • Docs
              • Pricing
              • FAQ
              • Roadmap
              • Changelog

              Packages

              npm

              Stay in touch

              Get open source security insights delivered straight into your inbox.


              • Terms
              • Privacy
              • Security

              Made with ⚡️ by Socket Inc