USE_TYPE and QUEUE vs1000

Writing software that inputs and/or outputs audio and performs DSP algorithms such as filters, new codecs or audio effects.
Post Reply
boutzo
User
Posts: 8
Joined: Thu 2015-09-24 7:27

USE_TYPE and QUEUE vs1000

Post by boutzo » Fri 2015-09-25 8:27

Is it possible to create a playlist using the "Tplaylisttxt\n" command and in the txt file have the songs placed in a queue for gapless playback?

example txt file

Qfx00ooo1ogg\n
Qfx000002ogg\n
....
Qfx000099ogg\n

Can this be done ?
Is this the correct format ?

How are songs triggered in a queue? Do you have to trigger the first song in the queue?

User avatar
pasi
VLSI Staff
Posts: 1412
Joined: Thu 2010-07-15 16:04

Re: USE_TYPE and QUEUE vs1000

Post by pasi » Tue 2015-09-29 12:10

Files added to the queue are added to the end of the queue.

If nothing is currently playing, you need to send a play command, any play command to start to play the first file in the queue. Each time a new song is requested (by the previous one ending), the next song in the queue will be played.

Reading a playlist and producing a queue from it is not quite simple, because it requires going through the directory and having the playlist file open at the same time, which is not normally possible. I will put it on my own queue though, in case I think of an easy way to implement it. (Will probably be restricted to when not playing.)
Visit https://www.facebook.com/VLSISolution VLSI Solution on Facebook

gsmari
User
Posts: 2
Joined: Fri 2011-12-23 23:55

Re: USE_TYPE and QUEUE vs1000

Post by gsmari » Tue 2017-11-14 20:09

Hello I can't get USE_QUEUE to work on the VS1000 module. Can someone send me a detailed info on how to make it work ?

I am using RealTerm to talk to the module via USB/SERIAL cable and can play files and everything else seems to work.
I uncommented USE_QUEUE in system.h also tried to uncomment / comment some other options like START_IN_FILE_MODE and more.

When I start the module it responds via serial with: v0.72-uart-queue-filemode and some more text, but when I send f.ex. QMODULE02OGG I get no text. If I just change the QMODULE02OGG to PMODULE02OGG and send it, the file plays normally.

I renamed the original MODULE2.OGG to MODULE02.OGG to make the filename exactly 8 chars + extension.

Please help,
Thanks,
Gunnar.

User avatar
pasi
VLSI Staff
Posts: 1412
Joined: Thu 2010-07-15 16:04

Re: USE_TYPE and QUEUE vs1000

Post by pasi » Yesterday 14:17

You should get either "add " or "nof " and the filename as a response.

What are the sizes of spiall.spi and eeprom.img ? Do sdplayer.spi / spiplayer.spi change when you rebuild the solution?

Check that the post-build step of the four solutions have "/y" in "copy /y spiall.spi eeprom.img" .
Visit https://www.facebook.com/VLSISolution VLSI Solution on Facebook

Post Reply

Who is online

Users browsing this forum: No registered users