User`s guide
Architecture
AT85C51SND3Bx Firmware User’s Guide 5-39
7691A–MP3–08/07
Table 5-16. Player publics routines
Note: * If the resultof this routine is successful, then you must wait a confirmation via specific
routine player_evt().
5.6.3 Recorder Interface
The Recorder module takes in charge the control of the audio recorder features of the
chip:
– it interfaces the audio processor
– it manages the recording of audio files (start, stop)
The recorder module does not include a command, but one event “
EVT_RECORDER”
with
different arguments.
Table 5-17. Recorder event arguments
Routines Description
player_on() Turn the audio controller on
player_off() Turn the audio controller off
player_play_file()* Play the music file selected on current file system navigator
player_restart_play()* Restart playing at beginning
player_pause()* Pause the ongoing play
player_stop()* Stop a playing file and close file
player_fast_foward()* Fast-forward the ongoing play
player_fast_rwd()* Fast-rewind the ongoing play
player_set_marker_A() Set the marker A at the current position in the ongoing play
player_set_marker_B() Set the marker B at the current position in the ongoing play and start
AB repeat
player_stop_repeat_AB()* Stop playing the AB track
player_set_speed() Change the speed of the play (normal/slow)
player_linein_on() Enable ouput audio from line-in
player_linein_off() Disable ouput audio from line-in
player_set_volume() Change the output volume level
audio_surround() Set the virtual surround on/off
audio_bassboost() Set the bass boost on/off
audio_set_vol_equalizer() Set the bass/medium/treble band volume
player_get_time() Get the elapsed time of the ongoing play
player_get_timetotal() Get the total time of a song to play
player_channel_type() Get information channel type on the current stream.
player_sampling_freq() Get information sampling frequence on the current stream.
player_bitrate() Get information bitrate on the current stream.
player_get_codec_type() Get the codec type currently used.
player_task_start() Enable player task (it must be call after player_play_file() successfull)
player_task_stop() Disable player task (it must be call after player_stop() successfull)
Arguments of “EVT_RECORDER” Description
RECORD_EOF End of recording because of destination memory access fail.
Note: recorder_task_stop() is automaticly executed.