mme_video_set_audio()

Set the audio stream for video playback

Synopsis:

#include <mme/mme.h>

int mme_video_set_audio ( mme_hdl_t *hdl,
                          uint64_t title,
                          int index );

Arguments:

hdl
An MME connection handle.
title
The title to set the audio for.
index
An index to a desired audio stream from the array filled in by a previous call to mme_video_get_audio_info(). 0 (zero) points to the first available choice. A -1 in this parameter disables audio.

Library:

mme

Description:

The function mme_video_set_audio() sets the audio stream for video playback in a control context.


Note: The MME 1.1.0 release does not support dynamic setting of audio attributes during video playback. These attributes should be set before starting playback. See also the data structure mm_video_audio_info_t.

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).

Classification:

QNX Neutrino

Safety:
Interrupt handler No
Signal handler No
Thread Yes

See also:

mm_video_audio_info_t, mme_video_get_angle_info(), mme_video_get_audio_info(), mme_video_get_info(), mme_video_get_status(), mme_video_get_subtitle_info(), mme_video_set_angle(), mme_video_set_properties(), mme_video_set_audio()