npm.io
0.2.0 • Published 7 years ago

audio-hid-events

Licence
MIT
Version
0.2.0
Deps
1
Size
4 kB
Vulns
0
Weekly
0

Audio HID Events

Listen to HID events from USB audio products.

Installation

npm install --save audio-hid-events

Usage

const audioHidEvents = require('audio-hid-events')

audioHidEvents.on('volume-up', () => {
  console.log('Volume up')
})

audioHidEvents.on('volume-down', () => {
  console.log('Volume down')
})

audioHidEvents.on('mute', () => {
  console.log('Toggle mute')
})

Events

Name Button
volume-up Volume up
volume-down Volume down
mute Mute

Supported products

Currently the only supported product is "USB AUDIO CODEC" (29c6) by "BurrBrown from Texas Instruments" (08bb). Adding support for more products should be trivial.