我要评分
获取效率
正确性
完整性
易理解

AudioPlayParams

Variable Description

Audio playback parameters.

Restrictions

The bitrate parameter is valid only in OPUS format, and the sampleInterval parameter is valid in both OPUS and PCM formats.

Property Field Name

Description

Value Range

Default Value

sampleInterval

Audio output sampling interval.

  • 5: 5 ms (not supported currently)
  • 10: 10 ms
  • 20: 20 ms (not supported currently)

10

bitrate

Audio OPUS encoding bit rate (bit/s).

13200 to 512000

192000

Variable Data Definition

struct AudioPlayParams {
    uint32_t sampleInterval = 10;               // ms
    uint32_t bitrate = 192000;                  // The unit is bit/s. This parameter is valid only in OPUS format.
} __attribute__((packed));