X hits on this document

PDF document

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

98 views

0 shares

3 downloads

0 comments

17 / 29

AVR32709

5.8.3

Example 3 - Change the playing order T he p l a y i n g o rd e r c a n b e c h a n g e d a t c om pi l a t i o n t i m e b y e n a b l i n g t h e N A V _ A U T O _ F I L E _ I N _ F I R S T d e f i n e ( S e c t i o n 6 . 5 P r o j e c t C o n f i g u r a t i o n o n p a g e 2 5 ) .

Table 5-7.

Playfile sequence

Command

Order

Command Name

0 1 2 3 4

ai ai ai ai ai

_ _ _ _ _

a u nav_drive_nb(): returns 1 disk. nav_drive_set(0): selects the disk 0. nav_drive_mount(): mounts the select disk 0. d i o _ n a v _ p l a y f i l e ( ) : s e l e c t s a f i l e i n t h e a u d i o p l a y e r . a u d i o _ c t r l _ r e s u m e ( ) : p l a y s t h e s e l e c t e d f i l e .

Playfile sequence with NAV AUTO FILE IN FIRST undefined

_

_

__

File name file5.wma file6.mp3 file4.mp3 file7.mp3 file1.mp3 file2.wma

Parent directory path /dir1/dir3/ /dir1/dir3/ /dir1/ /dir2/ / /

file3.wma

/

Table 5-8. Order 0 1 2 3 4 5 6

I f t h e N A V _ A U T O _ F I L E _ I N _ F I R S T d e f i n e i s n o t s e t , t h e s e q u e n c e w i l l p l a y a u d i o f i l e s i n t h e f lowing order: o l -

Order

File name

0

file1.mp3

1

file2.wma

2

file3.wma

3

file4.mp3

4

file5.wma

5

file6.mp3

6

file7.mp3

Otherwise, if this define is set, the sequence will play audio files starting with files on the root:

Table 5-9.

P l a y f i l e s e q u e n c e w i t h N A V _ A U T O _ F I L E _ I N _ F I R S T d e f i n e d

Parent directory path / / / /dir1/ /dir1/dir3/ /dir1/dir3/ /dir2/

17

7817D–AVR32–05/11

Document info
Document views98
Page views98
Page last viewedSat Dec 10 14:46:40 UTC 2016
Pages29
Paragraphs1022
Words9236

Comments