Search found 1795 matches

by pasi
Thu 2021-06-17 12:15
Forum: DSP and Audio Software
Topic: Change Speed of MP3 file
Replies: 3
Views: 19

Re: Change Speed of MP3 file

I thought that you already had the player part, and only needed to adjust the samplerate. Unfortunately I can't help much with the Arduino. If you have a working player, you may need to dig a little deeper to find the main play loop, or some kind of callback function that gets called during play, so...
by pasi
Wed 2021-06-16 11:21
Forum: DSP and Audio Software
Topic: Change Speed of MP3 file
Replies: 3
Views: 19

Re: Change Speed of MP3 file

You can write to the SCI_AUDATA to change the actual playback rate (mp3 decoding won't override it unless the samplerate in the mp3 audio itself changes), or use a more fool-proof method: lie about the XTAL frequency through SCI_CLOCKF. If you're using the vs1053b patches package, you can also use t...
by pasi
Fri 2021-06-11 9:10
Forum: VS1010 Forum
Topic: GPIO MiniDemi board
Replies: 14
Views: 139

Re: GPIO MiniDemi board

Reading XCS0 state twice will create a hard-to-notice random issue of disappearing presses and double presses, so just read once... void MyCallback(AUDIO_DECODER *auDec, u_int16 samples) { short newKey = GpioReadPin(PIN_XCS0); if ((lastPress) != 0 && (newKey == 0)) { /* First edge*/ auDec->c...
by pasi
Fri 2021-06-11 9:03
Forum: VS1010 Forum
Topic: Formatting fresh SPI flash
Replies: 3
Views: 132

Re: Formatting fresh SPI flash

There are two sizes Windows shows. With Properties, Windows shows the formatted size of the FAT disk. If you choose to format a disk in Windows, it will show the size of the physical disk as reported by the USB Mass Storage device.
by pasi
Fri 2021-06-11 9:00
Forum: VS1010 Forum
Topic: SPI Flash problems
Replies: 4
Views: 490

Re: SPI Flash problems

A random tidbit: To determine the FLASH size, REMS is used instead of RDID, because in RDID the FLASH Size information byte is manufacturer-defined. At least one unnamed manufacturer has decided to use the size byte as Binary Coded Decimal (BCD) instead of normal hex value.
by pasi
Thu 2021-06-10 13:46
Forum: VS1010 Forum
Topic: GPIO MiniDemi board
Replies: 14
Views: 139

Re: GPIO MiniDemi board

The playerCallback is called during the audio decoding. By calling the PlayFileNamed() again, you create a recursion of the player and the audio decoder. However, the player is not re-entrant, thus the recursion will mess up everything. Also, you are not detecting the rising edge of the button, only...
by pasi
Fri 2021-05-28 9:49
Forum: Microcontroller Software
Topic: VS1053b DREQ stays LOW after loading a patch
Replies: 8
Views: 263

Re: VS1053b DREQ stays LOW after loading a patch

Could it be that the software reset fixed it? You can't load the patch if the patch is already loaded, you have to give software reset first. (At least the vs1063 patches tells how you can perform restart of the patch instead of software reset.) Although then, the loading of the patch should work on...
by pasi
Wed 2021-05-26 8:44
Forum: Microcontroller Software
Topic: VS1053b DREQ stays LOW after loading a patch
Replies: 8
Views: 263

Re: VS1053b DREQ stays LOW after loading a patch

Which power are you turning off and on? Do you mean xRESET?

Are you waiting for DREQ to go high after xRESET is deasserted before sending SCI commands and/or loading the patch?
by pasi
Tue 2021-05-25 14:27
Forum: Microcontroller Software
Topic: VS1053b DREQ stays LOW after loading a patch
Replies: 8
Views: 263

Re: VS1053b DREQ stays LOW after loading a patch

Probably something goes wrong in the patch upload. What is your SPI speed and SCI_CLOCKF value?

Have you tried a smaller version of the vs1053b patches, such as "playpatches"?
by pasi
Tue 2021-05-18 14:49
Forum: DSP and Audio Software
Topic: VS1063 playflaccrcspectrum patch
Replies: 8
Views: 386

Re: VS1063 playflaccrcspectrum patch

Are you setting your own frequencies/bands, or are you using the defaults?

When you read back the band frequencies, do you get sensible results?