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

@types/howler

Package Overview
Dependencies
Maintainers
1
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/howler

Type definitions for howler.js v1.1.29 from https://www.github.com/DefinitelyTyped/DefinitelyTyped

  • 1.1.4-alpha
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
205K
decreased by-3.58%
Maintainers
1
Weekly downloads
 
Created

What is @types/howler?

@types/howler provides TypeScript definitions for the Howler.js library, which is a powerful audio library for the web. It allows developers to easily control audio playback, manage multiple sounds, and handle various audio-related tasks in a web application.

What are @types/howler's main functionalities?

Basic Sound Playback

This feature allows you to play a sound file. You create a new Howl object with the source of the audio file and call the play method to start playback.

const sound = new Howl({ src: ['sound.mp3'] }); sound.play();

Sound Control

This feature provides control over the sound playback. You can play, pause, and stop the sound using the respective methods.

const sound = new Howl({ src: ['sound.mp3'] }); sound.play(); sound.pause(); sound.stop();

Volume Control

This feature allows you to control the volume of the sound. You can set the volume level using the volume method.

const sound = new Howl({ src: ['sound.mp3'] }); sound.volume(0.5);

Looping

This feature enables looping of the sound. By setting the loop property to true, the sound will play continuously in a loop.

const sound = new Howl({ src: ['sound.mp3'], loop: true }); sound.play();

Sprite Support

This feature allows you to define and play audio sprites. You can specify different parts of the audio file as sprites and play them individually.

const sound = new Howl({ src: ['sound.mp3'], sprite: { intro: [0, 5000], loop: [5000, 10000] } }); sound.play('intro');

Other packages similar to @types/howler

FAQs

Package last updated on 17 May 2016

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