From 2a26efc6912badfff9e798f5dbac57ba85ce6dd1 Mon Sep 17 00:00:00 2001 From: Dean Camera Date: Mon, 30 May 2011 11:07:57 +0000 Subject: 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. --- Demos/Device/ClassDriver/AudioOutput/Descriptors.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'Demos/Device/ClassDriver/AudioOutput/Descriptors.c') diff --git a/Demos/Device/ClassDriver/AudioOutput/Descriptors.c b/Demos/Device/ClassDriver/AudioOutput/Descriptors.c index 0b1e8c1119..e46c3c023e 100644 --- a/Demos/Device/ClassDriver/AudioOutput/Descriptors.c +++ b/Demos/Device/ClassDriver/AudioOutput/Descriptors.c @@ -200,8 +200,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 = -- cgit v1.2.3