SWILIB API (SG)    
Loading...
Searching...
No Matches
Player

Detailed Description

Functions for working with builtin media player.

Usage: #include <swilib.h> or #include <swilib/player.h>

Functions

uint32_t * RamMPlayer_CtrlCode ()
 Pointer to the CSM ID of the media player, used to send commands to it.
 
void MEDIA_PLAYLAST ()
 Play previous song in standart media player.
 
void MediaProc_LaunchLastPlayback ()
 Play last song in standart media player.
 
int IsMediaPlayerInBackground ()
 Check if MediaPlayer in the background.
 
const WSHDR * MediaProc_GetLastAudioTrackFilename ()
 Get the filename of the last audio track in the media player.
 
const WSHDR * MediaProc_GetLastAudioTrackDir ()
 Get the directory of the last audio track in the media player.
 
int MediaProc_GetLastActivatedMusicFilter ()
 Get the last activated music filter ID in the media player.
 
int MediaProc_GetLastActivatedMusicGenreLUID ()
 Get the LUID of the last activated music genre in the media player.
 
int MediaProc_GetLastActivatedMusicArtistLUID ()
 Get the LUID of the last activated music artist in the media player.
 
int MediaProc_GetLastActivatedMusicAlbumLUID ()
 Get the LUID of the last activated music album in the media player.
 
void CloseMediaPlayer ()
 Close MediaPlayer.
 
char * RamMediaPlayerCurrentTrackFormat ()
 File format of the current audio track in MediaPlayer.
 
char * RamMediaPlayerCurrentTrackFreq ()
 Audio freq of the current audio track in MediaPlayer.
 
char * RamMediaPlayerCurrentTrackChannels ()
 Channels number from the current audio track in MediaPlayer.
 

Function Documentation

◆ RamMPlayer_CtrlCode()

uint32_t * RamMPlayer_CtrlCode ( )

Pointer to the CSM ID of the media player, used to send commands to it.

Returns
NSG: CSM ID of the player controlled by Bluetooth (AVRCP) keys, 0 when it closes; always 0 on S68
ELKA: CSM ID of the player that last started playback, 0xFFFE before the first playback
Note
On ELKA the value is not cleared when the player closes, check IsPlayerOn before sending commands.
Available on platforms:
NSG, ELKA
void GBS_SendMessage(int cepid, int msg,...)
Send message to the GBS event processor.
@ MMI_CEPID
MMI.
Definition gbs.h:30
uint32_t * RamMPlayer_CtrlCode()
Pointer to the CSM ID of the media player, used to send commands to it.

◆ MEDIA_PLAYLAST()

void MEDIA_PLAYLAST ( )

Play previous song in standart media player.

◆ MediaProc_LaunchLastPlayback()

void MediaProc_LaunchLastPlayback ( )

Play last song in standart media player.

Always creates a new copy of media player.

◆ IsMediaPlayerInBackground()

int IsMediaPlayerInBackground ( )

Check if MediaPlayer in the background.

Returns
1 or 0

◆ MediaProc_GetLastAudioTrackFilename()

const WSHDR * MediaProc_GetLastAudioTrackFilename ( )

Get the filename of the last audio track in the media player.

Returns
pointer to the WSHDR

◆ MediaProc_GetLastAudioTrackDir()

const WSHDR * MediaProc_GetLastAudioTrackDir ( )

Get the directory of the last audio track in the media player.

Returns
pointer to the WSHDR

◆ MediaProc_GetLastActivatedMusicFilter()

int MediaProc_GetLastActivatedMusicFilter ( )

Get the last activated music filter ID in the media player.

Returns
unique filter ID

◆ MediaProc_GetLastActivatedMusicGenreLUID()

int MediaProc_GetLastActivatedMusicGenreLUID ( )

Get the LUID of the last activated music genre in the media player.

Returns
unique genre LUID

◆ MediaProc_GetLastActivatedMusicArtistLUID()

int MediaProc_GetLastActivatedMusicArtistLUID ( )

Get the LUID of the last activated music artist in the media player.

Returns
unique artist LUID

◆ MediaProc_GetLastActivatedMusicAlbumLUID()

int MediaProc_GetLastActivatedMusicAlbumLUID ( )

Get the LUID of the last activated music album in the media player.

Returns
unique album LUID

◆ CloseMediaPlayer()

void CloseMediaPlayer ( )

Close MediaPlayer.

◆ RamMediaPlayerCurrentTrackFormat()

char * RamMediaPlayerCurrentTrackFormat ( )

File format of the current audio track in MediaPlayer.

Returns
0xA - MP3, 0x8 - WAV, 0x4 - MID, 0x2 - 3GP

◆ RamMediaPlayerCurrentTrackFreq()

char * RamMediaPlayerCurrentTrackFreq ( )

Audio freq of the current audio track in MediaPlayer.

Returns
0x4 - 22 kHz, 0x5 - 32 kHz, 0x7 - 44 kHz, 0x8 - 48 kHz

◆ RamMediaPlayerCurrentTrackChannels()

char * RamMediaPlayerCurrentTrackChannels ( )

Channels number from the current audio track in MediaPlayer.

Returns
0x4 - 22 kHz, 0x5 - 32 kHz, 0x7 - 44 kHz, 0x8 - 48 kHz