USBIP C library 0.7.0
Virtual USB devices & host drivers over USB/IP
Loading...
Searching...
No Matches

USB Audio Class 1.0 (UAC1) device class: speaker + microphone, app API. More...

#include "usb_class.h"

Data Structures

struct  uac_opts
 UAC1 configuration: microphone source + speaker sink callbacks. More...
 

Typedefs

typedef struct uac_audio uac_audio
 One USB Audio function: a single instance of the class on a device.
 

Functions

uac_audiouac_add (usbip_device *dev, const uac_opts *opts)
 Add a UAC1 audio interface (speaker + microphone) to a device.
 
void uac_tone (uint8_t *buf, int frames, uint32_t index)
 Fill a buffer with the built-in synthetic microphone tone.
 

Variables

const usbip_device_class usbip_device_uac
 The UAC1 audio class, for usbip_device_add_class()
 

Detailed Description

USB Audio Class 1.0 (UAC1) device class: speaker + microphone, app API.

Presents a full-speed UAC1 audio device: an AudioControl interface (two playback/capture terminal chains, each with a mute+volume Feature Unit) plus two AudioStreaming interfaces - a stereo speaker (isochronous OUT) and a mono microphone (isochronous IN), both 48 kHz / 16-bit PCM. The microphone streams a built-in 440 Hz synthetic tone (or app-supplied frames); the speaker is a sink that meters the level and hands the PCM to the app. Built on usbip_device.h only.