Loading plg files and audio recording

Discussion about writing software for VS1005 and the VSOS Operating System. Also posts about VS1005-related hardware design and device drivers should be posted here.
Post Reply
quickshat
User
Posts: 14
Joined: Fri 2016-07-22 11:21

Loading plg files and audio recording

Post by quickshat » Mon 2016-08-01 19:51

Hi,
i have a question concerning your RLE compressing/decompressing algorithm:
First of all, why does loading a plugin take so much time ? apporx. 125kb
Then it never finished in my code, although i was using your code-example which is attached to nearly every datasheet from you.
The C: if (n&0x8000U) is translated into C#: if(n&0x8000) != 0x00 correctly ?
Then we have (n--) as a while statement does mean while(n-- != 0) doesn't it ?

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

Re: Loading plg files and audio recording

Post by pasi » Tue 2016-08-02 12:08

Yes, (n & 0x8000) is equivalent to ((n & 0x8000) != 0) and (n--) is equivalent to (n-- != 0).

In practice the 'compression' does something only for data areas that are initialized to zeros.

The instruction memory of the VSDSP processor is 32-bit, so code takes a lot of space to store.
Visit https://www.facebook.com/VLSISolution VLSI Solution on Facebook

quickshat
User
Posts: 14
Joined: Fri 2016-07-22 11:21

Re: Loading plg files and audio recording

Post by quickshat » Tue 2016-08-02 12:56

Ok then i have a question concerning the WriteVS10XXRegister(uint16 adr, uint16 val) method:
Is it an equivalent to the WriteSciRegister() method ?

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

Re: Loading plg files and audio recording

Post by pasi » Mon 2016-08-08 15:38

Yes, they refer to the same kind of function.
Visit https://www.facebook.com/VLSISolution VLSI Solution on Facebook

Post Reply