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: 1518
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: 1518
Joined: Thu 2010-07-15 16:04

Re: USE_TYPE and QUEUE vs1000

Post by pasi » Tue 2017-11-21 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

os94
User
Posts: 1
Joined: Thu 2018-04-12 19:55

Re: USE_TYPE and QUEUE vs1000

Post by os94 » Thu 2018-04-12 20:11

Hello, I am having the same problem as gsmari. When I build the default firmware solution in VSIDE after uncommenting USE_QUEUE and START_IN_FILEMODE, I get this message:

combineimg -o spiall.spi -m 32768 +0 usbmass.spi +8192 spiplayer.spi +16384 sdplayer.spi +24576 sdmass.spi
Add file: usbmass.spi 0x0000..0x1a1d
Add file: spiplayer.spi 0x2000..0x3b8f
Add file: sdplayer.spi 0x4000..0x5edd
Add file: sdmass.spi 0x6000..0x7648
copy spiall.spi eeprom.img
1 file(s) copied.

Which I assume means the solution built correctly. Both eeprom.ing and spiall.spi are 30kb after building. I have also added in '/y' to the post build step.

Do you have any advice for getting the queue to work using the default firmware?

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

Re: USE_TYPE and QUEUE vs1000

Post by pasi » Tue 2018-04-17 11:08

At least the combineimg produces a full image.

Do you get any response to the Q command (while in filemode)? To other commands?

Did you rebuild the solution? i.e. did any of the programs compile after you changed the definitions in system.h ?
Visit https://www.facebook.com/VLSISolution VLSI Solution on Facebook

Post Reply