mme_video_get_audio_info()

Get the audio information for video playback

Synopsis:

#include <mme/mme.h>

int mme_video_get_audio_info ( mme_hdl_t *hdl,
                               uint64_t title,
                               mm_video_audio_info_t *info );

Arguments:

hdl
An MME connection handle.
title
The video title for which you want to get the audio information.
info
A pointer to a mm_video_audio_info_t structure that carries information about the title's audio settings.

Library:

mme

Description:

The function mme_video_get_audio_info() gets information about audio settings for video playback in a control context and places it in the structure mm_video_audio_info_t described in this reference.

Events

None delivered.

Blocking and validation

This function blocks on io-media. It returns only when it has completed.

Returns:

0
Success.
-1
An error occurred (errno is set).

Examples:

From mmecli:

mm_video_angle_info_t info;
unit_64 title = 1;

rc = mme_video_get_angle_info( mmehdl, title, &info );
if ( rc == 0 ) {
    sprintf( output, "Total: %d; Current: %d",
        info.total, info.current );
} else {
    sprintf( output, "Error getting video angle info: %s (%d).",
        strerror( errno ), errno );
}

Classification:

QNX Neutrino

Safety:
Interrupt handler No
Signal handler No
Thread Yes

See also:

mme_video_get_angle_info(), mme_video_get_info(), mme_video_get_status(), mme_video_get_subtitle_info(), mme_video_set_angle(), mme_video_set_audio(), mme_video_set_properties(), mme_video_set_subtitle()