VS1010 File Position

Designing hardware and software for systems that use the VS1010 MP3 Audio DSP Microcontroller.
Post Reply
AudioJack
User
Posts: 11
Joined: Thu 2020-07-09 18:22

VS1010 File Position

Post by AudioJack » Mon 2021-01-18 14:50

Hi,

Having previously used VS1005 in UART mode there was data returned on file position as a percentage.
Does something similar to this exist in VS1010?

User avatar
Panu
VLSI Staff
Posts: 2798
Joined: Tue 2010-06-22 13:43

Re: VS1010 File Position

Post by Panu » Fri 2021-01-22 18:22

Hi!

Not in the ROM because the VS1010 is EXTREMELY cost optimized in regard to the memory size and what's in the memory, but the same VS1005 code probably would work if copied into a custom PlayerCallback function in the VS1010.

In any case, it would be something like u_int32 percentage = (auDec->inFp->pos * 100L) / auDec->inFp->fileSize;

-Panu
Info: Line In and Line Out, VS1000 User interface, Overlay howto, Latest VSIDE, MCU Howto, Youtube
Panu-Kristian Poiksalo, VLSI Solution Oy

Post Reply