Search found 13 matches

by vtech
Thu 2021-02-25 23:35
Forum: Microcontroller Software
Topic: VS1063a MP3 Encode Not Working. Decoding just fine
Replies: 10
Views: 797

Re: VS1063a MP3 Encode Not Working. Decoding just fine

Just as an update.


That worked. Now I have to figure out where my "hiss" is coming from on my recordings. Looks like it may be a noisy power supply.
by vtech
Thu 2021-02-25 2:42
Forum: Microcontroller Software
Topic: VS1063a MP3 Encode Not Working. Decoding just fine
Replies: 10
Views: 797

Re: VS1063a MP3 Encode Not Working. Decoding just fine

Ahhhhhhh. Thanks guys. That makes sense. I'll give that a shot.
by vtech
Tue 2021-02-23 20:02
Forum: Microcontroller Software
Topic: VS1063a MP3 Encode Not Working. Decoding just fine
Replies: 10
Views: 797

Re: VS1063a MP3 Encode Not Working. Decoding just fine

I have the cancel happen inside a handler that is triggered when I receive a signal SIGUSR1

Code: Select all

void sig_record_handler(int signum) 
{
	if (signum == SIGUSR1)
	{
		printf("Asserting the Cancel Now\n");
		WriteSci(SCI_MODE, ReadSci(SCI_MODE) | SM_CANCEL);
	}
}
by vtech
Tue 2021-02-23 15:25
Forum: Microcontroller Software
Topic: VS1063a MP3 Encode Not Working. Decoding just fine
Replies: 10
Views: 797

Re: VS1063a MP3 Encode Not Working. Decoding just fine

It fails to end. Since the RECWORDS count is greater than zero, it just perpetually adds "garbage" to the end of the file and never seems to end. I never clear the SM_ENCODE flag. I simply set the SM_CANCEL and then wait, but the count doesn't go to zero. I have since just resorted to breaking out a...
by vtech
Fri 2021-02-12 17:20
Forum: Microcontroller Software
Topic: VS1063a MP3 Encode Not Working. Decoding just fine
Replies: 10
Views: 797

Re: VS1063a MP3 Encode Not Working. Decoding just fine

Yes, that is correct. I am showing that RECWORDS is non-zero, but the same non-zero after each pass. For instance, it was reading 209 words over and over again. While sometimes, its 1201 words over and over again. I am confirming that the CANCEL is acknowledged, but the RECWORDS never go to zero, he...
by vtech
Thu 2021-02-11 6:21
Forum: Microcontroller Software
Topic: VS1063a MP3 Encode Not Working. Decoding just fine
Replies: 10
Views: 797

VS1063a MP3 Encode Not Working. Decoding just fine

All, I have been searching for a reason why my VS1063a isn't gracefully cancelling my Encoding. The decoding piece is working just fine. My difficulty is asserting SM_CANCEL and having the encoding end gracefully. I followed the example code, and I can't seem to see where i'm going sideways. I am at...
by vtech
Tue 2020-03-24 16:50
Forum: Stand-Alone Applications
Topic: VS1063 MP3 File not playing correctly
Replies: 7
Views: 3226

Re: VS1063 MP3 File not playing correctly

Throughout the read from USB, I am printing the values and they are consistently as follows :

CLOCKF : B430
MODE : 820
STATUS : 60
AUDATA : AC44
by vtech
Thu 2020-03-19 19:17
Forum: Stand-Alone Applications
Topic: VS1063 MP3 File not playing correctly
Replies: 7
Views: 3226

Re: VS1063 MP3 File not playing correctly

I am using a USB stick as storage. It is definitely able to transfer fast enough. It is transferring at USB 1.0 speed currently and it tested at 11.7Mb/s which is more than adequate, right ?
by vtech
Thu 2020-03-19 15:37
Forum: Stand-Alone Applications
Topic: VS1063 MP3 File not playing correctly
Replies: 7
Views: 3226

Re: VS1063 MP3 File not playing correctly

The file has a bitrate of 121kbps. I am sending data appropriately respecting dreq and xDCS. I dropped the bitrate down to 96kbps and the choppiness is gone and the audio plays fine, so it seems the chip is being starved. I didn't change the line from the code to change the clock rate : WriteSci(SCI...
by vtech
Wed 2020-03-18 23:46
Forum: Stand-Alone Applications
Topic: VS1063 MP3 File not playing correctly
Replies: 7
Views: 3226

Re: VS1063 MP3 File not playing correctly

Ok, I have some more info. It appears that the fread() is stopping prematurely due to a library issue on my side. However, now the MP3 file is playing and it is missing data during playing as indicated by gaps shown on my o-scope. In addition, the audio sounds robotic. My understanding was that the ...