Working with contexts
To create a new context, call the function mmr_context_create(), passing the mm-renderer connection handle. The creation operation returns a context handle, which you use to manipulate the context, for example by attaching inputs and outputs, and issuing playback commands. You can create as many contexts as you need to, as long as your application manages potentially conflicting playback situations.
When a context is no longer needed, you can destroy it by passing the context handle to the mmr_context_destroy() function.