![]() |
![]() |
![]() |
![]() |
Play a track session
#include <mme/mme.h> int mme_play( mme_hdl_t *hdl, uint64_t fid );
mme
The function mme_play() plays tracks in a track session. This function can only be used after the client application has called mme_newtrksession() to create a track session, and mme_settrksession() to set the track session.
If you specify the fid in a library-based track-session, the MME starts playback with the specified fid. If the library-based track session contains more than one instance of the specified fid, the MME starts playback at the first instance of this fid.
The MME control context notifies the client application at set intervals while it is playing a track session by delivering the event MME_EVENT_TIME. You can change this period through the function mme_set_notification_interval().
![]() |
|
This function may deliver any event of the class MME_EVENT_CLASS_PLAY, and any MME_PLAY_ERROR_* event.
This function does not verify that the fid is in the track session. If the connection to the MME is synchronous, the function validates that the file exists and that it is playable.
This function blocks on control contexts. If mme_play() is called and another function is called before mme_play() returns, the second function blocks on io-media until mme_play() returns. If there are no other pending calls, mme_play() returns without blocking on io-media.
QNX Neutrino
Safety: | |
---|---|
Interrupt handler | No |
Signal handler | No |
Thread | Yes |
mme_newtrksession(), mme_next(), mme_prev(), mme_stop()
![]() |
![]() |
![]() |
![]() |