mmr_track_parameters()

Set parameters for a track in the input

Synopsis:

#include <mm/renderer.h>
int mmr_track_parameters(mmr_context_t *ctxt,
                         unsigned index,
                         strm_dict_t *parms)

Arguments:

ctxt
A handle to the context for which a track in the input is being configured
index
For playlist inputs, use zero to set the default parameters, and nonzero to set the parameters for the track at the specified index in the playlist window. For autolist inputs, this must be 1, because default parameters aren't used.
parms

A handle to a dictionary containing the track parameters to set. Any previous parameters are overridden. Use NULL to reset the parameters of the specified track to the default values.

The strm_dict_t object becomes API property after this call, even if it fails. You should not use or destroy the dictionary after passing it to this function.

Library:

mmrndclient

Description:

Set parameters for a track in the input. This function can be used when the input type is playlist or autolist or when it's undefined because an input hasn't been attached. When the input type is track, the function fails.

Returns:

Zero on success, -1 on failure (use mmr_error_info())