Altered the definition of the USB_Audio_Descriptor_Format_t descriptor so that the user is now responsible for supplying the supported audio sampling rates, to allow for multiple audio interfaces with different numbers of supported rates and/or continuous sample rates.
This commit is contained in:
1 parent
78cfaac9b4
commit
2a26efc691
15 files changed
+59
-28
No files matched your search
@@ -199,9 +199,12 @@ const USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
|
||||
|
||||
.SubFrameSize = 0x02,
|
||||
.BitResolution = 16,
|
||||
.SampleFrequencyType = AUDIO_TOTAL_SAMPLE_RATES,
|
||||
|
||||
.SampleFrequencies = {AUDIO_SAMPLE_FREQ(AUDIO_SAMPLE_FREQUENCY)}
|
||||
.TotalDiscreteSampleRates = 1,
|
||||
},
|
||||
|
||||
.Audio_AudioFormatSampleRates =
|
||||
{
|
||||
AUDIO_SAMPLE_FREQ(AUDIO_SAMPLE_FREQUENCY)
|
||||
},
|
||||
|
||||
.Audio_StreamEndpoint =
|
||||
|
||||
Reference in new issue
Block a user