Search found 16 matches

by johnsonyin
Tue Apr 25, 2017 3:14 am
Forum: Q&A
Topic: how to extract audio volume level meter from audio stream ( PC(host) to Xmos device) ?
Replies: 11
Views: 10593

Re: how to extract audio volume level meter from audio stream ( PC(host) to Xmos device) ?

Hi infiniteimprobability, you mean, if sent calculated mutliplier by host (default ), samplesIn_1[ ] will be saved input channel audio volume (actual sample ) value, if sent decibel volume value by host, then samplesIn_1[ ] will be saved input channel audio decibel volume value is it right? thanks
by johnsonyin
Thu Apr 20, 2017 8:52 am
Forum: Q&A
Topic: how to extract audio volume level meter from audio stream ( PC(host) to Xmos device) ?
Replies: 11
Views: 10593

Re: how to extract audio volume level meter from audio stream ( PC(host) to Xmos device) ?

thanks,infiniteimprobability

where can we get input audio volume data ? is it samplesIn_1[ ] ?
by johnsonyin
Tue Apr 18, 2017 11:16 am
Forum: Q&A
Topic: how to extract audio volume level meter from audio stream ( PC(host) to Xmos device) ?
Replies: 11
Views: 10593

Re: how to extract audio volume level meter from audio stream ( PC(host) to Xmos device) ?

Hi infiniteimprobability Thanks for your reply and messages, i still have the following puzzled questions, would you please explain them, thanks again! In README.txt of vu.zip, you wrote : Finally, in audio.xc in sc_usb_audio, insert the following: At the top of the file: #include "vu_calc_inli...
by johnsonyin
Sat Apr 15, 2017 9:54 am
Forum: Q&A
Topic: how to extract audio volume level meter from audio stream ( PC(host) to Xmos device) ?
Replies: 11
Views: 10593

Re: how to extract audio volume level meter from audio stream ( PC(host) to Xmos device) ?

one more thing, what means? the following code, thanks! if (timeafter(t_now, t_trig)){ unsigned mac_h, mac_l; {mac_h, mac_l} = lmul(left_vu, MUL_PWR_100_DIV_2P32, 0, 0); left_vu = mac_h; {mac_h, mac_l} = lmul(right_vu, MUL_PWR_100_DIV_2P32, 0, 0); right_vu = mac_h; t_trig = t_now + (DECAY_TIME_UNIT_...
by johnsonyin
Sat Apr 15, 2017 9:50 am
Forum: Q&A
Topic: how to extract audio volume level meter from audio stream ( PC(host) to Xmos device) ?
Replies: 11
Views: 10593

Re: how to extract audio volume level meter from audio stream ( PC(host) to Xmos device) ?

Thanks for you information, mon2

int left = (int)samples_out[0];
int right = (int)samples_out[1];

you mean that samples_out[0] and samples_out[1] are left and right audio volume value. Is it right ?
by johnsonyin
Fri Apr 14, 2017 9:50 am
Forum: Q&A
Topic: how to extract audio volume level meter from audio stream ( PC(host) to Xmos device) ?
Replies: 11
Views: 10593

how to extract audio volume level meter from audio stream ( PC(host) to Xmos device) ?

Dear all we are preparing for a project with xmos xu216 chip, a frontpanel will be used display audio volume. where can we extract audio volume level meter data? How to get them? Do volsIn[ ] and volsOut[ ] use to save audio level meter data? Would you please give me some suggestions? thanks in adva...
by johnsonyin
Fri Feb 24, 2017 12:37 pm
Forum: Q&A
Topic: How to read/write flash in endpoint0( )
Replies: 6
Views: 6857

Re: How to read/write flash in endpoint0( )

Thanks for larry, i got it
by johnsonyin
Fri Feb 17, 2017 10:32 am
Forum: Q&A
Topic: How to read/write flash in endpoint0( )
Replies: 6
Views: 6857

Re: How to read/write flash in endpoint0( )

What ports/pins is your flash connected to? If your USB endpoint is running on a core on tile 1, then calling fl_connect(ports) will try to connect to the flash device using ports on tile 1. Be aware that (for example) XS1_PORT_1E names a port within a tile, but on tile[0]: XS1_PORT_1E and on tile[...
by johnsonyin
Wed Feb 15, 2017 8:29 am
Forum: Q&A
Topic: which library or module should be included for read mac or serial number from OTP
Replies: 2
Views: 3062

Re: which library or module should be included for read mac or serial number from OTP

hi, lib_otpinfo is the current library to use (eg. for storing ethernet MAC addresses). What compiler error do you get? It may or may not be related to this but we would need to see the details to help further. Thanks, infiniteimprobability, I'd downloaded lib_otpinfo library, I can compile success...