X hits on this document

PDF document

AVR32709: AVR32 UC3 Audio Decoder Over USB - page 10 / 29

81 views

0 shares

3 downloads

0 comments

10 / 29

5.5

Audio Navigation

This navigator sets the list of files to be played. It can be seen as a «playlist». Before accessing this navigator, an ai_audio_nav_playfile command must be issued.

Table 5-3.

Audio Navigator Commands

Command Name

Input

Return

Output Extra result

Description

a i _ a u d i o _ n a v _ p l a y f i l e

ai audio context save

_

_

_

ai audio context restore

_

_

_

Structure Context

True or false

- True or false

This command sets the audio file list according to the current mode of the audio navigator and plays (or sets to pause) the file selected in the disk navigator. In other words, it synchronizes the audio navigator with the disk navigator and plays (or sets to pause) the selected file from the disk navigator. Note that this command returns immediatly and does not wait until the current track is completly played. This commands does not change the current options (repeat/random/expmode). It is the opposite of the command ai nav_getplayfile. Return false in case of error.

_

Structure Context

- The length of the structure in bytes

Gives complete audio context (player state, play time, repeat, random, file played, explorer mode).

True or false

Restores an audio context (eventually restart playing).

ai audio nav next

_

_

_

a i _ a u d i o _ n a v _ p r e v i o u s

ai audio nav eof occur

_

_

_

_

ai audio nav nb

_

_

_

True or false

Jump to next audio file available in the list. The next song file is chosen according to the current options (repeat/random/mode).

True or false

Jumps to previous audio file available in the list. The next song file is chosen according to the current options (repeat/random/mode).

True or false

This routine must be called once a track ends. It will choose, according to the options (repeat/random/expmode), the next file to play.

Number of audio files present in the list

Returns the number of audio files present in the list.

a i _ a u d i o _ n a v _ g e t p o s a i _ a u d i o _ n a v _ s e t p o s

a i _ a u d i o _ n a v _ r e p e a t _ g e t

a i _ a u d i o _ n a v _ r e p e a t _ s e t

a i _ a u d i o _ n a v _ s h u f f l e _ g e t

ai audio nav shuffle set

_

_

_

_

a i _ a u d i o _ n a v _ e x p m o d e _ g e t

File position

File position True or false

Ai_repeat m ode

_

Ai_repeat mo de

_

Ai_shuffle m ode

_

Ai_shuffle mo de

_

Ai_explorer mode

_

Returns the file position of the selected file in the list. Goes to a position in the list.

Returns the current repeat mode (no repeat, repeat single, repeat folder, repeat all).

Sets the current repeat mode (no repeat, repeat single, repeat folder, repeat all).

Returns the current shuffle mode (no shuffle, shuffle folder, shuffle all).

Sets the current shuffle mode (no shuffle, shuffle folder, shuffle all).

Returns the current explorer mode (all disks, one disk, directory only, directory + sub directories).

10

AVR32709

7817D–AVR32–05/11

Document info
Document views81
Page views81
Page last viewedSun Dec 04 04:00:14 UTC 2016
Pages29
Paragraphs1022
Words9236

Comments