mirror of
https://github.com/apache/nuttx.git
synced 2026-03-24 07:35:07 +08:00
nuttx/audio: increase bits of samplerate in struct audio_info_s.
Current 8 bits of uint8_t cannot represent sample rate bigger than 255,change uint8_t to uint32_t to expand sample rate range. Signed-off-by: wurui3 <wurui3@xiaomi.com>
This commit is contained in:
@@ -436,10 +436,10 @@ struct audio_caps_desc_s
|
||||
|
||||
struct audio_info_s
|
||||
{
|
||||
uint8_t samplerate; /* Sample Rate of the audio data */
|
||||
uint8_t channels; /* Number of channels (1, 2, 5, 7) */
|
||||
uint8_t format; /* Audio data format */
|
||||
uint8_t subformat; /* Audio subformat
|
||||
uint32_t samplerate; /* Sample Rate of the audio data */
|
||||
uint8_t channels; /* Number of channels (1, 2, 5, 7) */
|
||||
uint8_t format; /* Audio data format */
|
||||
uint8_t subformat; /* Audio subformat
|
||||
* (maybe should be combined with format?
|
||||
*/
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user