Загрузка данных


/home/vovan/ZEPHYR_RTOS/zephyrproject/zephyr/samples/pjsip/pjproject/pjsip-apps/src/samples/zephyr_pjsua.c:484:60: error: 'union <anonymous>' has no member named 'audio'; did you mean 'aud'?
  484 |             unsigned negotiated_codec_rate = media->stream.audio->remote_codec_param->setting.info.clock_rate;

typedef struct pjsua_call_media_info
{
    /** The specific media stream info. */
    union {
        /** Audio stream */
        struct {
            /** The conference port number for the call.  */
            pjsua_conf_port_id      conf_slot;
        } aud;
.....................
/** Conference port identification */
typedef int pjsua_conf_port_id;

struct pjsua_call_media
{
    pjsua_call          *call;      /**< Parent call.                       */
    pjmedia_type         type;      /**< Media type.                        */
    unsigned             idx;       /**< This media index in parent call.   */
    pj_str_t             rem_mid;   /**< Remote SDP "a=mid" attribute.      */
    pjsua_call_media_status state;  /**< Media state.                       */
    pjsua_call_media_status prev_state;/**< Previous media state.           */
    pjmedia_dir          def_dir;   /**< Default media direction.           */
    pjmedia_dir          dir;       /**< Current media direction.           */

    /** The stream */
    struct {
        /** Audio stream */
        struct {
            pjmedia_stream *stream;    /**< The audio stream.               */
            pjmedia_port   *media_port;/**< The media port.                 */
            pj_bool_t       destroy_port;/**< Destroy the media port?       */
            int             conf_slot; /**< Slot # in conference bridge.    */
        } a;
......................

typedef struct pjmedia_port
{
    pjmedia_port_info    info;              /**< Port information.  */
...................

typedef struct pjmedia_port_info
{
    pj_str_t        name;               /**< Port name.                     */
    pj_uint32_t     signature;          /**< Port signature.                */
    pjmedia_dir     dir;                /**< Port direction.                */
    pjmedia_format  fmt;                /**< Format.                        */
} pjmedia_port_info;

typedef struct pjmedia_format
{
    pj_uint32_t                  id;
    pjmedia_type                 type;
    pjmedia_format_detail_type   detail_type;
    union
    {
        pjmedia_audio_format_detail     aud;
        pjmedia_video_format_detail     vid;
        char                            user[PJMEDIA_FORMAT_DETAIL_USER_SIZE];
    } det;

} pjmedia_format;

typedef struct pjmedia_audio_format_detail
{
    unsigned    clock_rate;     /**< Audio clock rate in samples or Hz. */
    unsigned    channel_count;  /**< Number of channels.                */
    unsigned    frame_time_usec;/**< Frame interval, in microseconds.   */
    unsigned    bits_per_sample;/**< Number of bits per sample.         */
    pj_uint32_t avg_bps;        /**< Average bitrate                    */
    pj_uint32_t max_bps;        /**< Maximum bitrate                    */
} pjmedia_audio_format_detail;