diff options
author | Dean Camera <dean@fourwalledcubicle.com> | 2011-05-30 11:07:57 +0000 |
---|---|---|
committer | Dean Camera <dean@fourwalledcubicle.com> | 2011-05-30 11:07:57 +0000 |
commit | 2a26efc6912badfff9e798f5dbac57ba85ce6dd1 (patch) | |
tree | 9510c38dc53bbf95489cd10c00d5685e4d97d70b /Demos/Device/LowLevel/AudioOutput/Descriptors.c | |
parent | 78cfaac9b4fc9ae15652f18e9abb79dcedfcd4b5 (diff) | |
download | lufa-2a26efc6912badfff9e798f5dbac57ba85ce6dd1.tar.gz lufa-2a26efc6912badfff9e798f5dbac57ba85ce6dd1.tar.bz2 lufa-2a26efc6912badfff9e798f5dbac57ba85ce6dd1.zip |
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.
Diffstat (limited to 'Demos/Device/LowLevel/AudioOutput/Descriptors.c')
-rw-r--r-- | Demos/Device/LowLevel/AudioOutput/Descriptors.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/Demos/Device/LowLevel/AudioOutput/Descriptors.c b/Demos/Device/LowLevel/AudioOutput/Descriptors.c index 3ac23c944..9c57a421f 100644 --- a/Demos/Device/LowLevel/AudioOutput/Descriptors.c +++ b/Demos/Device/LowLevel/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 = |