Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

penx/usb-audio

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Universal Serial Bus Device Class Definition for Audio Devices

TypeScript constants from Appendix A of the USB Audio Device Class Definition, Release 3.0.

Install

npm install usb-audio

Usage

import { FU_MUTE_CONTROL, FUNCTION_SUBCLASS_HEADPHONE } from 'usb-audio';

Every constant is exported with a literal type, so each name can be used as both a value and a type via typeof.

Naming

Identifiers follow the Linux kernel convention from include/linux/usb/audio-v3.h, without the UAC3_ prefix. A few names from 0.0.4 that collided between A.2 and A.7 (HEADPHONE, MICROPHONE, HEADSET, HEADSET_ADAPTER, SPEAKERPHONE, SPEAKER, FULL_ADC_3_0, GENERIC_I_O) are kept as @deprecated aliases.

Coverage

All of Appendix A from the spec (A.1 through A.24). The body of the spec — descriptor structures, request behavior, terminal types from the separate USB-IF Terminal Types document — is not yet included.

References

About

Universal Serial Bus Device Class Definition for Audio Devices

Topics

Resources

Stars

Watchers

Forks

Releases

Packages

Used by

Contributors

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.