Search found 362 matches

by Hannu
Wed 2022-04-06 16:00
Forum: VS1005 and VSOS Software
Topic: ADC input sets the difference between the two modes. I want to set it to 48K32BIT mode
Replies: 7
Views: 283

Re: ADC input sets the difference between the two modes. I want to set it to 48K32BIT mode

You forgot auinput -b32.

You need to have same samplerate and bitwidth in input and output.
by Hannu
Wed 2022-04-06 13:19
Forum: VS1010 Forum
Topic: Click after power on
Replies: 3
Views: 1537

Re: Click after power on

You need to set AudioInited() hook In vompg.c there is the ROM version void rom_AudioInited(void) { GpioSetPin(0x00,1); } Here's some copypasta how to set it. Set the SOMETHING_IF_NEEDED to proper value to delay declick rise. That delay is a blocking delay, it will delay every every time the decoder...
by Hannu
Tue 2022-04-05 8:46
Forum: VS1005 and VSOS Software
Topic: ADC input sets the difference between the two modes. I want to set it to 48K32BIT mode
Replies: 7
Views: 283

Re: ADC input sets the difference between the two modes. I want to set it to 48K32BIT mode

auoutput -b32 Sets to 32 bit mode.

Due to VSDSP architecture only choices are 16 and 32 bits. And to 32 bits you can put all 24 bit values. Only theoretical place where this could matter is I2S but no external DAC has come up which would have problems with that.
by Hannu
Wed 2022-03-30 13:25
Forum: VS1010 Forum
Topic: How to pass data between dlx?
Replies: 15
Views: 510

Re: How to pass data between dlx?

char *strncpy(char *dest, const char *src, size_t n); The strncpy() function is similar, except that at most n bytes of src are copied. Warning: If there is no null byte among the first n bytes of src, the string placed in dest will not be null-terminated. The reason is that I don't want to overflo...
by Hannu
Wed 2022-03-30 10:35
Forum: VS1010 Forum
Topic: How to pass data between dlx?
Replies: 15
Views: 510

Re: How to pass data between dlx?

The problem is that the string is allocated in configreader and you pass a pointer and then use after the configreader has been dropped. You need to have a buffer for the name in config. I wrote a small sample program which passes data around also copies a greeter. Also I put a tagging trick to it w...
by Hannu
Thu 2022-03-24 14:06
Forum: VS1010 Forum
Topic: How to pass data between dlx?
Replies: 15
Views: 510

Re: How to pass data between dlx?

You are correct. configreader comes executes and goes away. The memory is like before calling it except your config structure has the read values. Your design pattern is also the one which I was thinking. Next logical step is to split target to target1 and target2 libraries where target1 inits and t...
by Hannu
Wed 2022-03-23 14:28
Forum: VS1010 Forum
Topic: How to pass data between dlx?
Replies: 15
Views: 510

Re: How to pass data between dlx?

By opening an .a file, I find several places with something like this .sect code,max // 67 words It seems there is no summary of I code usage in the .a file. Please correct me if I overlook something. That is size of your max function in. 67 words. When you try to make some function smaller, you ca...
by Hannu
Wed 2022-03-23 11:43
Forum: VS1010 Forum
Topic: How to pass data between dlx?
Replies: 15
Views: 510

Re: How to pass data between dlx?

You are out of I memory. There is only 4 kW available from 0x0000 to 0x1000. How ready your program is? How long is your "one more simple thing to add list is?" Because those small features are the poison. you write ten liner if statement to get it working. Then you repeat it twenty times ...
by Hannu
Tue 2022-03-22 16:33
Forum: VS1010 Forum
Topic: How to pass data between dlx?
Replies: 15
Views: 510

Re: How to pass data between dlx?

Hi, It is possible, I've done it several times. First thing to remember is that libraries work as stack. First loaded, last dropped. In your parent, you must reserve the space, then pass the location information to library. RunLibrary("configreader", (char *)&config); Now you can find ...
by Hannu
Tue 2022-03-22 16:19
Forum: VS1005 and VSOS Software
Topic: ADC and IIS inputs coexist
Replies: 2
Views: 200

Re: ADC and IIS inputs coexist

Hi, First to answer your question: stdaudioin is single stereo source. It is usually selected when an input driver is loaded with the s parameter. Second thing is that FtORev is output effect. Adding Input side feature should be small matter of programming. But let's not worry about it. Third point ...