mirror of
https://github.com/apache/nuttx.git
synced 2026-08-06 13:08:59 +00: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:
parent
ef827e88a7
commit
42e416d054
1 changed files with 4 additions and 4 deletions
|
|
@ -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?
|
||||
*/
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue