Skip to content

Send Data to LED while Playing #691

Answered by schreibfaul1
bmorse526 asked this question in Q&A
Discussion options

You must be logged in to vote

With audio_process_extern() you get every single sample in int16_t format.

uint16_t vum = audio.getVUlevel();
uint8_t left = vum >> 8; 
uint8_t right = vum & 0x00FF;

this gives you an average value for both channels, the values are between 0...127

Replies: 5 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by bmorse526
Comment options

You must be logged in to vote
1 reply
@schreibfaul1
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@schreibfaul1
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants