User`s guide
Architecture
5-34 AT85C51SND3Bx Firmware User’s Guide
7691A–MP3–08/07
5.5 Services
The services are provide by Atmel and include the usual MMI sequences. This one per-
mits to reduce the code in MMI Applications.
5.5.1 Player service
The player service provides a MACRO to start MMI_PLAYER with different options.
Table 5-7. Macro to start MMI_PLAYER
Table 5-8. Player services
Fonctions Description
Start_mmiplayer_resume() Restore last variables of player service, to play the last played item
Start_mmiplayer_from_saving_options() Restore all values of player service
Change the explorer values to play the current music file selected
Start_mmiplayer_on_disks() Restore all values of player service
Change the explorer values to play all disks and start at the current position
Start_mmiplayer_on_disk() Restore all values of player service
Change the explorer values to play one disk and start at the current position
Start_mmiplayer_on_dirsub() Restore all values of player service
Change the explorer values to play the current dir with sub directory
Start_mmiplayer_on_dir() Restore all values of player service
Change the explorer values to play the current dir without sub directory
Start_mmiplayer_one_file() Restore all values of player service
Change the explorer values to play the current file only
Start_mmiplayer_on_playlist() Restore all values of player service
Change the explorer values to play the current play list
Start_mmiplayer_on_playlist_at() Restore all values of player service
Change the explorer values to play the current play list at a specific position
Fonctions Description
srvplayer_restore() Copy player field from setting datas to the service variables
Note: it must be called before the other routines of player service.
srvplayer_save() Copy player field from service variables to the setting datas
srvplayer_explorer_init() Initialize the explorer module which permits to play many files in many modes (repeat, random).
Note: Don’t use this one, if you play a file include it in a specific list.
srvplayer_explorer_close() Close explorer module
srvplayer_switch_on() Turn ON the player modue
srvplayer_switch_off() Turn OFF the player modue
srvplayer_file_getinfos() Get static information about file (name, ID3)
srvplayer_play() Start play of current file selected at beginning or at specific time position
srvplayer_update_bitrate() Update bitrate information
Note: The codec type, channel type, sampling frequency, and bitrate informations are avialable only when
file is played.
srvplayer_gettime() Get current time play
srvplayer_stop() Stop play file
srvplayer_volume_send() Send at player module the volume value
Note: Change “srvplayer_g_arg.volume” value before
srvplayer_volume_change() Increment or decrement “srvplayer_g_arg.volume” value and send its.