mm_video_audio_info_t

Video audio information

Synopsis:

#include <mm/types.h>

typedef struct mm_video_audio_info {
    uint32_t    title;
    int8_t      total;
    int8_t      current;
    struct mm_audio_attr {
        char       lang[2];
        uint8_t    ext;
        uint8_t    type;
        uint8_t    channels;
        uint8_t    spare;
    } attr[MM_MAX_VIDEO_AUDIO_STREAMS];
} mm_video_audio_info_t;

Description:

The structure mm_video_audio_info_t structure carries information about the languages of a video's subtitles. It includes at least the members described in the table below.

Member Type Description
title uint32_t The title for which audio stream information is provided.
total int8_t The number of available audio streams. If this field is 0 (zero), no audio streams are available.
current int8_t The audio stream currently selected. If this field is set to -1, no audio is currently playing.
attr struct An array of structures: mm_audio_attr_t, of length MM_MAX_AUDIO_STREAMS, containing audio languages information.

mm_audio_attr_t

The structure mm_audio_attr_t carries information about the languages of a video's audio streams. It includes at least the members described in the table below.

Member Type Description
lang char Two-character ISO 639-1 language code for the audio stream.
ext uint8_t Language extension codes. See mm_subpict_lang_ext in this reference.
type uint8_t Audio stream type.
channels uint8_t Total number of audio channels, including a low frequency channel. For example, 8 = 7.1, 6 = 5.1, 3 = 2.1, 4 = 4, 2 = 2, 1 = 1, and 255 = “unknown”.
spare uint8_t Unused

Classification:

QNX Multimedia

See also:

mme_video_get_audio_info(), mme_video_set_audio()