This version of this document is no longer maintained. For the latest documentation, see http://www.qnx.com/developers/docs. |
MPEG Audio Player
/usr/photon/bin/mpegaudio (Photon)
/lib/dll/mpegaudio_noph.so
The MPEG Audio player plugins are based on the Xing DVD Player and decode MPEG Audio Layers I, II and III (MP3). They also support MPEG-2 low-bit rate streams and MPEG-2.5 Audio. An attempt is made to skip past the wrappers that sometimes accompany MP3 files.
The mpegaudio_noph.so player is launched by typing plaympegaudio_noph at the command line.
Calling MvInit() sets the value of MvPluginCtrl_t.MvPluginFlags_t pflags to 0.
See the Resource Profile Estimates and Library Dependencies appendix.
Valid commands for the MPEG audio player are:
CMD_PLUGIN_CLOSE
CMD_PLUGIN_DIRECT_AUDIO
CMD_PLUGIN_GET_STATUS
CMD_PLUGIN_MUTE
CMD_PLUGIN_OPEN_URLS
CMD_PLUGIN_PAUSE
CMD_PLUGIN_SEEK_TO
CMD_PLUGIN_SET_PARAMETER
CMD_PLUGIN_START
CMD_PLUGIN_STOP
export MPEGAUDIOMAXBITRATE=65
MPEG-1 and MPEG-2 audio bitstreams can encode at 8 to 480Kbps. Divide this in half for MPEG-2.5 extended-streams. |
See the callback handler example in the Soundfile player plugin and the plaympegaudio_noph.c example in the Appendix.