|
|
|
|
|
|
|
|
friend void usb_audio_receive_callback(unsigned int len); |
|
|
friend void usb_audio_receive_callback(unsigned int len); |
|
|
friend int usb_audio_set_feature(void *stp, uint8_t *buf); |
|
|
friend int usb_audio_set_feature(void *stp, uint8_t *buf); |
|
|
friend int usb_audio_get_feature(void *stp, uint8_t *data, uint32_t *datalen); |
|
|
friend int usb_audio_get_feature(void *stp, uint8_t *data, uint32_t *datalen); |
|
|
|
|
|
|
|
|
static struct usb_audio_features_struct features; |
|
|
static struct usb_audio_features_struct features; |
|
|
|
|
|
|
|
|
|
|
|
float volume(void) { |
|
|
|
|
|
if (features.mute) return 0.0; |
|
|
|
|
|
return (float)(features.volume) * (1.0 / (float)FEATURE_MAX_VOLUME); |
|
|
|
|
|
} |
|
|
private: |
|
|
private: |
|
|
static bool update_responsibility; |
|
|
static bool update_responsibility; |
|
|
static audio_block_t *incoming_left; |
|
|
static audio_block_t *incoming_left; |